diff --git a/config/default.toml b/config/default.toml index 7f10de2..315674b 100644 --- a/config/default.toml +++ b/config/default.toml @@ -1,4 +1,5 @@ debug = true +allow_registration = true # source code of your copy of pages server. source_code = "https://github.com/realaravinth/pages" diff --git a/src/settings.rs b/src/settings.rs index a5f6e9f..f771f3c 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -76,6 +76,7 @@ pub struct Database { #[derive(Debug, Clone, Deserialize)] pub struct Settings { + pub allow_registration: bool, pub debug: bool, pub server: Server, pub source_code: String,