From 91c2fcd5c4a778ecf5ce7c1415e617b5e6e433eb Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 13:16:47 +0300 Subject: [PATCH] ... --- src/jwtauth/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jwtauth/serializers.py b/src/jwtauth/serializers.py index fefccf1..cc5da7f 100644 --- a/src/jwtauth/serializers.py +++ b/src/jwtauth/serializers.py @@ -55,7 +55,7 @@ class LoginSerializer(serializers.Serializer): '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: raise serializers.ValidationError(