debug: add password string logging to diagnose special character issues
This commit is contained in:
@@ -287,7 +287,8 @@ export function verifyPassword(userId: string, password: string): boolean {
|
|||||||
}
|
}
|
||||||
const computed = hashPassword(password, user.salt)
|
const computed = hashPassword(password, user.salt)
|
||||||
const matches = computed === user.passwordHash
|
const matches = computed === user.passwordHash
|
||||||
console.log("[verifyPassword] userId:", userId, "computed:", computed, "stored:", user.passwordHash, "matches:", matches)
|
console.log("[verifyPassword] userId:", userId, "password:", JSON.stringify(password), "len:", password.length)
|
||||||
|
console.log("[verifyPassword] computed:", computed, "stored:", user.passwordHash, "matches:", matches)
|
||||||
return matches
|
return matches
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user