fix: Add default frontend config

This commit is contained in:
Lennart
2025-06-23 14:07:38 +02:00
parent 79c66a0b46
commit 503cbe3699
2 changed files with 10 additions and 0 deletions

View File

@@ -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,
}
}
}

View File

@@ -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<OidcConfig>,