From 57093ba1292d0f2f604da84f176439fee6a619ea Mon Sep 17 00:00:00 2001 From: maany Date: Tue, 26 Nov 2024 14:45:04 +0100 Subject: [PATCH] enable userpass login unless disabled explicitly --- src/lib/infrastructure/gateway/env-config-gateway.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/infrastructure/gateway/env-config-gateway.ts b/src/lib/infrastructure/gateway/env-config-gateway.ts index 432c8fec..46f07e39 100644 --- a/src/lib/infrastructure/gateway/env-config-gateway.ts +++ b/src/lib/infrastructure/gateway/env-config-gateway.ts @@ -156,10 +156,10 @@ class EnvConfigGateway implements EnvConfigGatewayOutputPort { async userpassEnabled(): Promise { const value = await this.get('ENABLE_USERPASS_LOGIN'); - if (value === 'true' || value === 'True' || value === 'TRUE') { - return Promise.resolve(true); + if (value === 'false' || value === 'False' || value === 'FALSE') { + return Promise.resolve(false); } - return Promise.resolve(false); + return Promise.resolve(true); } async ruleActivity(): Promise {