1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Introduce config to restrict user capabilities

This commit is contained in:
Quentin Gliech
2024-03-29 12:52:11 +01:00
parent 4d1b6aeded
commit 90080235da
5 changed files with 45 additions and 1 deletions

View File

@@ -135,6 +135,10 @@ pub fn site_config_from_config(
password_login_enabled: password_config.enabled(),
password_registration_enabled: password_config.enabled()
&& experimental_config.password_registration_enabled,
email_change_allowed: experimental_config.email_change_allowed,
displayname_change_allowed: experimental_config.displayname_change_allowed,
password_change_allowed: password_config.enabled()
&& experimental_config.password_change_allowed,
}
}