mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Set to default value when settings are hidden on panel
This commit is contained in:
parent
1f8a57b415
commit
da02afcb07
1 changed files with 14 additions and 0 deletions
|
@ -9,6 +9,20 @@
|
||||||
source ./_common.sh
|
source ./_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
ynh_app_config_validate() {
|
||||||
|
# Depending of the status of the $enable_regirtration we should default value of the hidden fields
|
||||||
|
if $enable_registration; then
|
||||||
|
# Must enable password authentication when free registration is enabled as any user must be able to authenticate
|
||||||
|
password_enabled=true
|
||||||
|
else
|
||||||
|
registrations_require_3pid=email
|
||||||
|
allowed_local_3pids_email=''
|
||||||
|
allowed_local_3pids_msisdn=''
|
||||||
|
disable_msisdn_registration=true
|
||||||
|
fi
|
||||||
|
_ynh_app_config_validate
|
||||||
|
}
|
||||||
|
|
||||||
ynh_app_config_apply() {
|
ynh_app_config_apply() {
|
||||||
_ynh_app_config_apply
|
_ynh_app_config_apply
|
||||||
configure_nginx
|
configure_nginx
|
||||||
|
|
Loading…
Reference in a new issue