Add account type

This commit is contained in:
2025-04-14 23:25:45 +02:00
parent 342af2c443
commit 5a51dee8b0
16 changed files with 176 additions and 6 deletions

View File

@ -1,4 +1,5 @@
use crate::app_config::AppConfig;
use crate::constants::{ACCOUNT_TYPES, AccountTypeDesc};
use actix_web::HttpResponse;
/// Serve robots.txt (disallow ranking)
@ -57,6 +58,7 @@ impl Default for ServerConstraints {
struct ServerConfig {
auth_disabled: bool,
oidc_provider_name: &'static str,
accounts_types: &'static [AccountTypeDesc],
constraints: ServerConstraints,
}
@ -66,6 +68,7 @@ impl Default for ServerConfig {
auth_disabled: AppConfig::get().is_auth_disabled(),
oidc_provider_name: AppConfig::get().openid_provider().name,
constraints: Default::default(),
accounts_types: &ACCOUNT_TYPES,
}
}
}