Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 15a0084fb7 | |||
| cd82083e09 | |||
| c0abf2f411 | |||
| 061e22d225 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "linkwarden",
|
"name": "linkwarden",
|
||||||
"version": "v2.6.1",
|
"version": "v2.6.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/linkwarden/linkwarden.git",
|
"repository": "https://github.com/linkwarden/linkwarden.git",
|
||||||
"author": "Daniel31X13 <daniel31x13@gmail.com>",
|
"author": "Daniel31X13 <daniel31x13@gmail.com>",
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user