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 May 26, 2020. It is now read-only.
When using the default ModelBackend in django settings activated,
the authenticate method in django.contrib.auth.backends.ModelBackend has the user_can_authenticate method.
In our case user.is_active is False and as a result the whole authenticate method in
this file returns None.
As a result in line 53 there is a check if the user is_active but it is unreachable in this point
and we render the wrong message which is in line 64.
The text was updated successfully, but these errors were encountered:
django-rest-framework-jwt/rest_framework_jwt/serializers.py
Line 53 in 4021e0b
When using the default ModelBackend in django settings activated,
the authenticate method in django.contrib.auth.backends.ModelBackend has the user_can_authenticate method.
In our case user.is_active is False and as a result the whole authenticate method in
this file returns None.
As a result in line 53 there is a check if the user is_active but it is unreachable in this point
and we render the wrong message which is in line 64.
The text was updated successfully, but these errors were encountered: