fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 35s

This commit is contained in:
2026-03-17 10:32:20 -04:00
parent fb6a996d9e
commit c779f9383e

View File

@@ -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.