You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check which one of those you find has correct password.
If none have correct - throw error.
If one only has correct password, check additional condition that if it's employee and NOT active we again need to throw error (that code that you tried to remove / change).
If more than one record has correct password than things get tricky. First filter those that have "employee" record, but not active and next just use one that was updated last time for example for now (i.e check updated date).
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: