Merge pull request #676 from linkwarden/dev

bug fixed
This commit is contained in:
Daniel 2024-07-26 11:55:07 -04:00 committed by GitHub
commit c0abf2f411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -79,10 +79,7 @@ const STRIPE_SECRET_KEY = process.env.STRIPE_SECRET_KEY;
const providers: Provider[] = []; const providers: Provider[] = [];
if ( if (process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED !== "false") {
process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === "true" ||
process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === undefined
) {
// undefined is for backwards compatibility // undefined is for backwards compatibility
providers.push( providers.push(
CredentialsProvider({ CredentialsProvider({

View File

@ -414,8 +414,7 @@ export function getLogins() {
} }
return { return {
credentialsEnabled: credentialsEnabled:
process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === "true" || process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED !== "false"
process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === undefined
? "true" ? "true"
: "false", : "false",
emailEnabled: emailEnabled: