bug fixed
This commit is contained in:
parent
8e6f88d29f
commit
061e22d225
|
@ -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({
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Ŝarĝante…
Reference in New Issue