Skip to content

Commit

Permalink
Force enable password authentication as some client need it to work c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
Josue-T committed Mar 19, 2024
1 parent 0788deb commit d42f646
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 7 additions & 6 deletions config_panel.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ services = ["__APP__"]
no = "false"
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]
ask = "Enable Password Login"
type = "boolean"
yes = "true"
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."
# Disabled for matrix V2 because some client like Element X don't support cas and so require to have password authentication enabled
# [main.welcome.password_enabled]
# ask = "Enable Password Login"
# type = "boolean"
# yes = "true"
# 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
# visible = "! enable_registration"

Expand Down
3 changes: 3 additions & 0 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ configure_synapse() {
turn_server_config='turn_uris: [ "turn:'$domain:$port_turnserver_tls'", "turn:'$domain:$port_turnserver_alt_tls'" ]'
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"
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
Expand Down

0 comments on commit d42f646

Please sign in to comment.