diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 43b3958a..3220b382 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -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 diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index 6f758af1..21ffa903 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -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