bug fix for qr code authentication
This commit is contained in:
parent
f003708282
commit
7661e2daa2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue