Compare commits

...

2 commits

Author SHA1 Message Date
1386869c43 fix: disable in-memory cache for clustered Next.js
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled
2024-09-08 17:47:30 +02:00
a711cef174 fix: don't log cleartext passwords 2024-09-08 17:29:45 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -18,7 +18,7 @@ export const authOptions: NextAuthOptions = {
console.log(adminUsername); console.log(adminUsername);
console.log(adminPasswordHash); console.log(adminPasswordHash);
console.log(credentials.username); console.log(credentials.username);
console.log(credentials.password); console.log("[password redacted]");
if (credentials.username == adminUsername) { if (credentials.username == adminUsername) {
const isValidPassword = await bcrypt.compare( const isValidPassword = await bcrypt.compare(
credentials.password, credentials.password,

View file

@ -14,6 +14,7 @@ const NextConfig = {
eslint: { eslint: {
ignoreDuringBuilds: true, ignoreDuringBuilds: true,
}, },
cacheMaxMemorySize: 0,
poweredByHeader: false poweredByHeader: false
}; };