diff --git a/roles/custom/matrix-authentication-service/defaults/main.yml b/roles/custom/matrix-authentication-service/defaults/main.yml index 838456bc7..4d724e006 100644 --- a/roles/custom/matrix-authentication-service/defaults/main.yml +++ b/roles/custom/matrix-authentication-service/defaults/main.yml @@ -219,6 +219,11 @@ matrix_authentication_service_config_account_displayname_change_allowed: true # This has no effect if password login is disabled. matrix_authentication_service_config_account_password_registration_enabled: false +# Controls the `account.password_registration_email_required` configuration setting. +# +# Whether self-service password registrations require a valid email. +matrix_authentication_service_config_account_password_registration_email_required: true + # Controls the `account.password_change_allowed` configuration setting. # # Whether users are allowed to change their passwords. diff --git a/roles/custom/matrix-authentication-service/templates/config.yaml.j2 b/roles/custom/matrix-authentication-service/templates/config.yaml.j2 index 38dd62948..0060584be 100644 --- a/roles/custom/matrix-authentication-service/templates/config.yaml.j2 +++ b/roles/custom/matrix-authentication-service/templates/config.yaml.j2 @@ -65,6 +65,7 @@ account: email_change_allowed: {{ matrix_authentication_service_config_account_email_change_allowed | to_json }} displayname_change_allowed: {{ matrix_authentication_service_config_account_displayname_change_allowed | to_json }} password_registration_enabled: {{ matrix_authentication_service_config_account_password_registration_enabled | to_json }} + password_registration_email_required: {{ matrix_authentication_service_config_account_password_registration_email_required | to_json }} password_change_allowed: {{ matrix_authentication_service_config_account_password_change_allowed | to_json }} password_recovery_enabled: {{ matrix_authentication_service_config_account_password_recovery_enabled | to_json }} account_deactivation_allowed: {{ matrix_authentication_service_config_account_account_deactivation_allowed | to_json }}