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
{{ message }}
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
Actually, the issue occurs at ModelBackend. It is made to reject deactivated users by default.
This is more a feature than a bug, because it hides to external users the fact the account
exists.
The bug is that there is an unreachable block of code to raise an error message that will never occur. The ModelBackend works as intended but the elif block i referenced will never be executed.
The block of code should either be reachable and show the inactive error message, or the elif block should be removed and there shouldn't be an inactive error message.
When deactivated user tries to log in it displays that credentials are invalid instead of indicating that the user is deactivated.
Digging into the code the class AuthenticationForm has the following code:
It doesn't get to the elif because authenticate returns None when the user is deactivated.
The text was updated successfully, but these errors were encountered: