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:
|
password_config:
|
||||||
# Uncomment to disable password login
|
# Uncomment to disable password login
|
||||||
#
|
#
|
||||||
#enabled: false
|
enabled: __PASSWORD_CONFIG_ENABLED__
|
||||||
|
|
||||||
# Uncomment to disable authentication against the local password
|
# Uncomment to disable authentication against the local password
|
||||||
# database. This is ignored if `enabled` is false, and is only useful
|
# database. This is ignored if `enabled` is false, and is only useful
|
||||||
|
|
|
@ -272,9 +272,11 @@ if [ $is_free_registration -eq 0 ]
|
||||||
then
|
then
|
||||||
allowed_access=False
|
allowed_access=False
|
||||||
sso_enabled=True
|
sso_enabled=True
|
||||||
|
password_config_enabled=False
|
||||||
else
|
else
|
||||||
allowed_access=True
|
allowed_access=True
|
||||||
sso_enabled=False
|
sso_enabled=False
|
||||||
|
password_config_enabled=True
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
|
ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue