mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 13:39:45 +03:00
Merge 2abe2d6351
into 42d039b473
This commit is contained in:
commit
d1f2402e92
|
@ -71,7 +71,7 @@ class LoginSerializer(serializers.Serializer):
|
||||||
user = self._validate_email(email, password)
|
user = self._validate_email(email, password)
|
||||||
|
|
||||||
# Authentication through username
|
# Authentication through username
|
||||||
if app_settings.AUTHENTICATION_METHOD == app_settings.AuthenticationMethod.USERNAME:
|
elif app_settings.AUTHENTICATION_METHOD == app_settings.AuthenticationMethod.USERNAME:
|
||||||
user = self._validate_username(username, password)
|
user = self._validate_username(username, password)
|
||||||
|
|
||||||
# Authentication through either username or email
|
# Authentication through either username or email
|
||||||
|
|
Loading…
Reference in New Issue
Block a user