This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user