From eb90dbfa5d478ea455da15b212840a3beac67e44 Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Fri, 14 Oct 2022 00:15:25 +0200 Subject: [PATCH] disable-password-if-private --- conf/homeserver.yaml | 2 +- scripts/install | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/homeserver.yaml b/conf/homeserver.yaml index f68cc24..1c7b5b0 100644 --- a/conf/homeserver.yaml +++ b/conf/homeserver.yaml @@ -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 diff --git a/scripts/install b/scripts/install index 1248241..4e89dfe 100644 --- a/scripts/install +++ b/scripts/install @@ -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"