We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658664a commit 8bd8d60Copy full SHA for 8bd8d60
rest_auth/serializers.py
@@ -71,7 +71,7 @@ def validate(self, attrs):
71
user = self._validate_email(email, password)
72
73
# Authentication through username
74
- if app_settings.AUTHENTICATION_METHOD == app_settings.AuthenticationMethod.USERNAME:
+ elif app_settings.AUTHENTICATION_METHOD == app_settings.AuthenticationMethod.USERNAME:
75
user = self._validate_username(username, password)
76
77
# Authentication through either username or email
0 commit comments