From a526e8f7f7a94188dec80d38262aaaeefc6d63fd Mon Sep 17 00:00:00 2001 From: Guus van Meerveld Date: Mon, 13 Feb 2023 16:55:50 +0100 Subject: [PATCH] Update ALLOW_REGISTRATION to be anything to enable registration --- src/utils/config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/config.ts b/src/utils/config.ts index 9c9ed10..0438e8a 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -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;