bug fix for qr code authentication

This commit is contained in:
JBB0807 2025-05-05 23:51:10 -07:00
parent f003708282
commit 7661e2daa2

View file

@ -45,11 +45,11 @@ studentRouter.post("/verify", async (req, res) => {
console.log("Response from DB_ASSIGNMENT_SERVICE_URL:", response.data);
console.log("Password provided:", password);
console.log("Password hash from database:", response.data.passwordhash);
console.log("Password hash from database:", response.data[0].passwordhash);
const isPasswordValid = await bcrypt.compare(
password,
response.data.passwordhash
response.data[0].passwordhash
);
console.log("Password validation result:", isPasswordValid);