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
? process.env.NEXT_PUBLIC_ALLOW_REGISTRATION == "true"
: false;
export const registrationIsEnabled =
process.env.NEXT_PUBLIC_ALLOW_REGISTRATION !== undefined ? true : false;
export const saltRoundsForPassword =
parseInt(process.env.PASSWORD_SALT_ROUNDS ?? "") || 10;

Loading…
Cancel
Save