From a881b075b2d6604318a3b6ecce5aed7cd3795d6e Mon Sep 17 00:00:00 2001 From: dongkyung Date: Wed, 6 Nov 2024 10:07:41 +0900 Subject: [PATCH] FIX: Modify the location of post_signup call for social login The processing location of "post_signup()" is within "if not login.is_existing", so the function cannot be called during normal social login. --- dj_rest_auth/registration/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dj_rest_auth/registration/serializers.py b/dj_rest_auth/registration/serializers.py index db095cfc..43ebf9c3 100644 --- a/dj_rest_auth/registration/serializers.py +++ b/dj_rest_auth/registration/serializers.py @@ -187,7 +187,7 @@ def validate(self, attrs): raise serializers.ValidationError( _('User is already registered with this e-mail address.'), ) from ex - self.post_signup(login, attrs) + self.post_signup(login, attrs) attrs['user'] = login.account.user