fix: don't log cleartext passwords

This commit is contained in:
Dorian Niemiec 2024-09-08 17:29:45 +02:00
parent 08eb13e2b4
commit a711cef174

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,