Can disable local login
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-29 12:20:05 +01:00
parent 9a599fdde2
commit d4de81f1fb
6 changed files with 22 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ pub(crate) struct BaseSettingsPage<'a> {
pub success_message: Option<String>,
pub page_title: &'static str,
pub app_name: &'static str,
pub local_login_enabled: bool,
pub user: &'a User,
pub version: &'static str,
pub ip_location_api: Option<&'static str>,
@@ -37,6 +38,7 @@ impl<'a> BaseSettingsPage<'a> {
app_name: APP_NAME,
user,
version: env!("CARGO_PKG_VERSION"),
local_login_enabled: !AppConfig::get().disable_local_login,
ip_location_api: AppConfig::get().ip_location_service.as_deref(),
}
}