bug fix for duplicate appname and qr code number

This commit is contained in:
JBB0807 2025-05-06 10:43:48 -07:00
parent 3712fb332b
commit ee04a7e8ef
4 changed files with 15 additions and 14 deletions

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[0].passwordhash);
console.log("Password hash from database:", response.data.passwordhash);
const isPasswordValid = await bcrypt.compare(
password,
response.data[0].passwordhash
response.data.passwordhash
);
console.log("Password validation result:", isPasswordValid);