auth.backends.ModelBackend.user_can_authenticate()

user_can_authenticate()

New in Django 1.10.

Returns whether the user is allowed to authenticate. To match the behavior of AuthenticationForm which prohibits inactive users from logging in, this method returns False for users with is_active=False. Custom user models that don’t have an is_active field are allowed.

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

Please login to continue.