mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
disable-password-if-private
This commit is contained in:
parent
48dcabbb66
commit
eb90dbfa5d
2 changed files with 3 additions and 1 deletions
|
@ -2167,7 +2167,7 @@ __DOMAIN_WHITELIST_CLIENT__
|
|||
password_config:
|
||||
# Uncomment to disable password login
|
||||
#
|
||||
#enabled: false
|
||||
enabled: __PASSWORD_CONFIG_ENABLED__
|
||||
|
||||
# Uncomment to disable authentication against the local password
|
||||
# database. This is ignored if `enabled` is false, and is only useful
|
||||
|
|
|
@ -272,9 +272,11 @@ if [ $is_free_registration -eq 0 ]
|
|||
then
|
||||
allowed_access=False
|
||||
sso_enabled=True
|
||||
password_config_enabled=False
|
||||
else
|
||||
allowed_access=True
|
||||
sso_enabled=False
|
||||
password_config_enabled=True
|
||||
fi
|
||||
|
||||
ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
|
||||
|
|
Loading…
Add table
Reference in a new issue