class AllowAllUsersModelBackend
New in Django 1.10.
Same as ModelBackend
except that it doesn’t reject inactive users because user_can_authenticate()
always returns True
.
When using this backend, you’ll likely want to customize the AuthenticationForm
used by the login()
view by overriding the confirm_login_allowed()
method as it rejects inactive users.
Please login to continue.