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

Force enable password authentication as some client need it to work correctly

This commit is contained in:
Josué Tille 2024-03-19 23:34:23 +01:00
parent 1efee6059b
commit 507ac9dd99
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 10 additions and 6 deletions

View file

@ -14,12 +14,13 @@ services = ["__APP__"]
no = "false" no = "false"
help = "Defaults to 'false'. If 'true', it is highly recommended to use either captcha, email, or token-based verification to avoid SPAM." help = "Defaults to 'false'. If 'true', it is highly recommended to use either captcha, email, or token-based verification to avoid SPAM."
[main.welcome.password_enabled] # Disabled for matrix V2 because some client like Element X don't support cas and so require to have password authentication enabled
ask = "Enable Password Login" # [main.welcome.password_enabled]
type = "boolean" # ask = "Enable Password Login"
yes = "true" # type = "boolean"
no = "false" # yes = "true"
help = "If disabled, Login with Non-YunoHost Users impossible. But it simplies Login process if your Matrix server only has YunoHost SSO Users." # no = "false"
# help = "If disabled, Login with Non-YunoHost Users impossible. But it simplies Login process if your Matrix server only has YunoHost SSO Users."
# Temporary disable the visible flag due of https://github.com/YunoHost/issues/issues/2331 # Temporary disable the visible flag due of https://github.com/YunoHost/issues/issues/2331
# visible = "! enable_registration" # visible = "! enable_registration"

View file

@ -109,6 +109,9 @@ configure_synapse() {
turn_server_config='turn_uris: [ "turn:'$domain:$port_turnserver_tls'", "turn:'$domain:$port_turnserver_alt_tls'" ]' turn_server_config='turn_uris: [ "turn:'$domain:$port_turnserver_tls'", "turn:'$domain:$port_turnserver_alt_tls'" ]'
fi fi
# Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled
password_enabled=true
ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
sed -i "s|_DOMAIN_WHITELIST_CLIENT_|$domain_whitelist_client|g" /etc/matrix-$app/homeserver.yaml sed -i "s|_DOMAIN_WHITELIST_CLIENT_|$domain_whitelist_client|g" /etc/matrix-$app/homeserver.yaml
sed -i "s|_AUTO_JOIN_ROOMS_SED_PARAM_|$auto_join_rooms_sed_param|g" /etc/matrix-$app/homeserver.yaml sed -i "s|_AUTO_JOIN_ROOMS_SED_PARAM_|$auto_join_rooms_sed_param|g" /etc/matrix-$app/homeserver.yaml