diff --git a/app/controllers/auth.controller.js b/app/controllers/auth.controller.js index f049de2..bbf8f67 100644 --- a/app/controllers/auth.controller.js +++ b/app/controllers/auth.controller.js @@ -192,7 +192,7 @@ exports.login = async (req, res) => { title: localEmployee.title || "" }); } - if (!activeEmployee) { + if (!activeEmployee && isPasswordCorrect) { throw Error("User is not activated"); } // Local account exists but credential doesn't match. Continue to external auth fallback.