From 503cbe36994cd0866519e816f3bd7fae6638f9a2 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Mon, 23 Jun 2025 14:07:38 +0200 Subject: [PATCH] fix: Add default frontend config --- crates/frontend/src/config.rs | 9 +++++++++ src/config.rs | 1 + 2 files changed, 10 insertions(+) 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,