mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 05:29:46 +03:00
Error authentication with email
This commit is contained in:
parent
602c764a23
commit
ed8961e3c4
|
@ -81,7 +81,7 @@ class LoginSerializer(serializers.Serializer):
|
|||
user = self._validate_email(email, password)
|
||||
|
||||
# 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)
|
||||
|
||||
# Authentication through either username or email
|
||||
|
|
Loading…
Reference in New Issue
Block a user