You've already forked authentication-service
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:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user