fix: Set default value of allow_registration to true
This commit is contained in:
parent
f322b6dca0
commit
576348a445
2 changed files with 2 additions and 2 deletions
|
|
@ -433,7 +433,7 @@
|
|||
# If you would like registration only via token reg, please configure
|
||||
# `registration_token`.
|
||||
#
|
||||
#allow_registration = false
|
||||
#allow_registration = true
|
||||
|
||||
# If registration is enabled, and this setting is true, new users
|
||||
# registered after the first admin user will be automatically suspended
|
||||
|
|
|
|||
|
|
@ -559,7 +559,7 @@ pub struct Config {
|
|||
///
|
||||
/// If you would like registration only via token reg, please configure
|
||||
/// `registration_token`.
|
||||
#[serde(default)]
|
||||
#[serde(default = "true_fn")]
|
||||
pub allow_registration: bool,
|
||||
|
||||
/// If registration is enabled, and this setting is true, new users
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue