through-your-tears 9 months ago
parent fd968e3841
commit 91c2fcd5c4

@ -55,7 +55,7 @@ class LoginSerializer(serializers.Serializer):
'A password is required to log in' 'A password is required to log in'
) )
user = authenticate(username=email, password=password) user = authenticate(username=email, email=email, password=password)
if user is None: if user is None:
raise serializers.ValidationError( raise serializers.ValidationError(

Loading…
Cancel
Save