1 parent
5b22add1f3
commit
2c98b8f925
38 files changed
+915
-87
No files matched your search
@@ -21,6 +21,9 @@ pub struct AuthPolicyResponse {
|
||||
remember_me_days: u64,
|
||||
session_timeout_hours: u64,
|
||||
pgp_enabled: bool,
|
||||
sieve_enabled: bool,
|
||||
diagnostics_enabled: bool,
|
||||
about_enabled: bool,
|
||||
}
|
||||
|
||||
pub async fn auth_policy(Extension(config): Extension<Arc<AppConfig>>) -> Json<AuthPolicyResponse> {
|
||||
@@ -29,6 +32,9 @@ pub async fn auth_policy(Extension(config): Extension<Arc<AppConfig>>) -> Json<A
|
||||
remember_me_days: config.remember_me_days,
|
||||
session_timeout_hours: config.session_timeout_hours,
|
||||
pgp_enabled: config.pgp_enabled,
|
||||
sieve_enabled: config.sieve_enabled,
|
||||
diagnostics_enabled: config.diagnostics_enabled,
|
||||
about_enabled: config.about_enabled,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user