File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const EnvironmentSchema = z
59
59
ADMIN_EMAILS : z . string ( ) . refine ( isValidRegex , "ADMIN_EMAILS must be a valid regex." ) . optional ( ) ,
60
60
REMIX_APP_PORT : z . string ( ) . optional ( ) ,
61
61
LOGIN_ORIGIN : z . string ( ) . default ( "http://localhost:3030" ) ,
62
- LOGIN_RATE_LIMITS_ENABLED : z . enum ( [ "0" , "1" ] ) . default ( "1" ) ,
62
+ LOGIN_RATE_LIMITS_ENABLED : BoolEnv . default ( true ) ,
63
63
APP_ORIGIN : z . string ( ) . default ( "http://localhost:3030" ) ,
64
64
API_ORIGIN : z . string ( ) . optional ( ) ,
65
65
STREAM_ORIGIN : z . string ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export async function action({ request }: ActionFunctionArgs) {
97
97
98
98
switch ( data . action ) {
99
99
case "send" : {
100
- if ( env . LOGIN_RATE_LIMITS_ENABLED !== "1" ) {
100
+ if ( ! env . LOGIN_RATE_LIMITS_ENABLED ) {
101
101
return authenticator . authenticate ( "email-link" , request , {
102
102
successRedirect : "/login/magic" ,
103
103
failureRedirect : "/login/magic" ,
You can’t perform that action at this time.
0 commit comments