Update ALLOW_REGISTRATION to be anything to enable registration
continuous-integration/drone/push Build is passing Details

main
Guus van Meerveld 2 years ago
parent b13c6d512f
commit a526e8f7f7
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -15,9 +15,8 @@ export const sessionOptions = {
} }
}; };
export const registrationIsEnabled = process.env.ALLOW_REGISTRATION export const registrationIsEnabled =
? process.env.NEXT_PUBLIC_ALLOW_REGISTRATION == "true" process.env.NEXT_PUBLIC_ALLOW_REGISTRATION !== undefined ? true : false;
: false;
export const saltRoundsForPassword = export const saltRoundsForPassword =
parseInt(process.env.PASSWORD_SALT_ROUNDS ?? "") || 10; parseInt(process.env.PASSWORD_SALT_ROUNDS ?? "") || 10;

Loading…
Cancel
Save