Skip to content

Commit 8cbe082

Browse files
committed
ack PR comment
1 parent 4cabc4b commit 8cbe082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Environment utility functions for consistent environment detection across the application
33
*/
4-
import { env, getEnv, isTruthy } from './env'
4+
import { env, getEnv, isFalsy, isTruthy } from './env'
55

66
/**
77
* Is the application running in production mode
@@ -68,7 +68,7 @@ export const isRegistrationDisabled = isTruthy(env.DISABLE_REGISTRATION)
6868
/**
6969
* Is email/password authentication enabled (defaults to true)
7070
*/
71-
export const isEmailPasswordEnabled = env.EMAIL_PASSWORD_SIGNUP_ENABLED !== false
71+
export const isEmailPasswordEnabled = !isFalsy(env.EMAIL_PASSWORD_SIGNUP_ENABLED)
7272

7373
/**
7474
* Is Trigger.dev enabled for async job processing

0 commit comments

Comments
 (0)