From 576348a445e400db8b0fe152cf225ca93b64f1ed Mon Sep 17 00:00:00 2001 From: Ginger Date: Sun, 15 Feb 2026 11:41:08 -0500 Subject: [PATCH] fix: Set default value of `allow_registration` to `true` --- conduwuit-example.toml | 2 +- src/core/config/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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