Skip to content

Commit d908d00

Browse files
committed
Add support for configuring account.password_registration_email_required for Matrix Authentication Service
Ref: - #4647 - https://github.com/element-hq/matrix-authentication-service/releases/tag/v1.4.0 - element-hq/matrix-authentication-service#5109
1 parent 31f2228 commit d908d00

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/custom/matrix-authentication-service/defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ matrix_authentication_service_config_account_displayname_change_allowed: true
219219
# This has no effect if password login is disabled.
220220
matrix_authentication_service_config_account_password_registration_enabled: false
221221

222+
# Controls the `account.password_registration_email_required` configuration setting.
223+
#
224+
# Whether self-service password registrations require a valid email.
225+
matrix_authentication_service_config_account_password_registration_email_required: true
226+
222227
# Controls the `account.password_change_allowed` configuration setting.
223228
#
224229
# Whether users are allowed to change their passwords.

roles/custom/matrix-authentication-service/templates/config.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ account:
6565
email_change_allowed: {{ matrix_authentication_service_config_account_email_change_allowed | to_json }}
6666
displayname_change_allowed: {{ matrix_authentication_service_config_account_displayname_change_allowed | to_json }}
6767
password_registration_enabled: {{ matrix_authentication_service_config_account_password_registration_enabled | to_json }}
68+
password_registration_email_required: {{ matrix_authentication_service_config_account_password_registration_email_required | to_json }}
6869
password_change_allowed: {{ matrix_authentication_service_config_account_password_change_allowed | to_json }}
6970
password_recovery_enabled: {{ matrix_authentication_service_config_account_password_recovery_enabled | to_json }}
7071
account_deactivation_allowed: {{ matrix_authentication_service_config_account_account_deactivation_allowed | to_json }}

0 commit comments

Comments
 (0)