auth.backends.AllowAllUsersModelBackend

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.

doc_Django
2016-10-09 18:34:04
Comments
Leave a Comment

Please login to continue.