Skip to content

Commit

Permalink
enable userpass login unless disabled explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Nov 26, 2024
1 parent c790558 commit 30dc16e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/infrastructure/gateway/env-config-gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ class EnvConfigGateway implements EnvConfigGatewayOutputPort {

async userpassEnabled(): Promise<boolean> {
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<string> {
Expand Down

0 comments on commit 30dc16e

Please sign in to comment.