From 46b9656e2f4c9b91c891d31e6280763df773987b Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 03:30:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D1=91=D1=82=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 66410d3..261966a 100644 --- a/src/jwtauth/serializers.py +++ b/src/jwtauth/serializers.py @@ -28,7 +28,7 @@ class RegistrationSerializer(serializers.ModelSerializer): user=user ) return { - 'username': user.email, + 'email': user.email, 'access_token': user.access_token, 'refresh_token': token.token }