diff --git a/assignment-service/routes/StudentRouter.js b/assignment-service/routes/StudentRouter.js index 0107595..5715f52 100644 --- a/assignment-service/routes/StudentRouter.js +++ b/assignment-service/routes/StudentRouter.js @@ -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);