1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

GraphQL API: Add password_change_allowed to SiteConfig (#2857)

This commit is contained in:
reivilibre
2024-06-20 15:16:50 +01:00
committed by GitHub
parent 96daf31cb5
commit 121966ccce
4 changed files with 27 additions and 6 deletions

View File

@@ -34,11 +34,14 @@ pub struct SiteConfig {
/// Imprint to show in the footer.
imprint: Option<String>,
/// Whether user can change their email.
/// Whether users can change their email.
email_change_allowed: bool,
/// Whether user can change their display name.
/// Whether users can change their display name.
display_name_change_allowed: bool,
/// Whether passwords are enabled and users can change their own passwords.
password_change_allowed: bool,
}
#[ComplexObject]
@@ -60,6 +63,7 @@ impl SiteConfig {
imprint: data_model.imprint.clone(),
email_change_allowed: data_model.email_change_allowed,
display_name_change_allowed: data_model.displayname_change_allowed,
password_change_allowed: data_model.password_change_allowed,
}
}
}