1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix registrations_require_3pid which could be set to none

This commit is contained in:
Josué Tille 2024-02-23 20:22:06 +01:00
parent 241283a834
commit 3880e7046e
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -108,7 +108,7 @@ then
disable_msisdn_registration="true"
ynh_app_setting_set --app=$app --key=disable_msisdn_registration --value=$disable_msisdn_registration
fi
if [ -z "${registrations_require_3pid:-}" ]
if [ -z "${registrations_require_3pid:-}" ] || [ "${registrations_require_3pid}" == none ]
then
registrations_require_3pid=email
ynh_app_setting_set --app=$app --key=registrations_require_3pid --value=$registrations_require_3pid