fix: don't log cleartext passwords
This commit is contained in:
parent
08eb13e2b4
commit
a711cef174
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue