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.
Please login to continue.