From 739f2737ba2c55a2b761081e31b7bdf6e93f4003 Mon Sep 17 00:00:00 2001 From: asif Date: Tue, 11 Nov 2025 01:50:42 +0530 Subject: [PATCH] fix: migrated users default password --- src/controllers/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/auth.controller.js b/src/controllers/auth.controller.js index c6103d1..b4222b2 100644 --- a/src/controllers/auth.controller.js +++ b/src/controllers/auth.controller.js @@ -56,7 +56,7 @@ async function login(req, res) { // --- Step 2: Check migration status const migratedPassword = `${userCheck.customer_no}@KCCB`; - const isMigratedUser = userCheck.password === migratedPassword; + const isMigratedUser = userCheck.password_hash === migratedPassword; if (isMigratedUser) { if (password !== migratedPassword) return res.status(401).json({ error: 'Invalid credentials.' });