mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 18:12:27 +00:00
fix: Add default frontend config
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user