diff --git a/pages/api/v1/logins/index.ts b/pages/api/v1/logins/index.ts index c592451..b5efab8 100644 --- a/pages/api/v1/logins/index.ts +++ b/pages/api/v1/logins/index.ts @@ -231,8 +231,8 @@ export function getLogins() { } return { credentialsEnabled: (process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === 'true' || process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === undefined) ? "true" : "false", - emailEnabled: process.env.NEXT_PUBLIC_EMAIL_PROVIDER, - registrationDisabled: process.env.NEXT_PUBLIC_DISABLE_REGISTRATION, + emailEnabled: (process.env.NEXT_PUBLIC_EMAIL_PROVIDER === 'true' ? 'true' : 'false'), + registrationDisabled: (process.env.NEXT_PUBLIC_DISABLE_REGISTRATION === 'true' ? 'true' : 'false'), buttonAuths: buttonAuths }; } \ No newline at end of file