diff --git a/crates/frontend/src/config.rs b/crates/frontend/src/config.rs index 56c5f9c..dee7e71 100644 --- a/crates/frontend/src/config.rs +++ b/crates/frontend/src/config.rs @@ -12,3 +12,12 @@ pub struct FrontendConfig { #[serde(default = "default_true")] pub allow_password_login: bool, } + +impl Default for FrontendConfig { + fn default() -> Self { + Self { + enabled: true, + allow_password_login: true, + } + } +} diff --git a/src/config.rs b/src/config.rs index 981bc8e..0c515c6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -79,6 +79,7 @@ pub struct Config { pub data_store: DataStoreConfig, #[serde(default)] pub http: HttpConfig, + #[serde(default)] pub frontend: FrontendConfig, #[serde(default)] pub oidc: Option,