Skip to content

Commit 57093ba

Browse files
committed
enable userpass login unless disabled explicitly
1 parent 7d4450c commit 57093ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/infrastructure/gateway/env-config-gateway.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ class EnvConfigGateway implements EnvConfigGatewayOutputPort {
156156

157157
async userpassEnabled(): Promise<boolean> {
158158
const value = await this.get('ENABLE_USERPASS_LOGIN');
159-
if (value === 'true' || value === 'True' || value === 'TRUE') {
160-
return Promise.resolve(true);
159+
if (value === 'false' || value === 'False' || value === 'FALSE') {
160+
return Promise.resolve(false);
161161
}
162-
return Promise.resolve(false);
162+
return Promise.resolve(true);
163163
}
164164

165165
async ruleActivity(): Promise<string> {

0 commit comments

Comments
 (0)