mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-06-10 07:53:05 +03:00
Merge f51ebbeffd
into cdd04aa9be
This commit is contained in:
commit
c22d190796
|
@ -142,6 +142,10 @@ class SocialLoginSerializer(serializers.Serializer):
|
||||||
login.lookup()
|
login.lookup()
|
||||||
login.save(request, connect=True)
|
login.save(request, connect=True)
|
||||||
|
|
||||||
|
# we return the login data (and so User and SocialAccount instances) here
|
||||||
|
# such that custom login and connect views can render suitable responses
|
||||||
|
attrs['login'] = login
|
||||||
|
# we still return `user` here for backwards compatibility
|
||||||
attrs['user'] = login.account.user
|
attrs['user'] = login.account.user
|
||||||
|
|
||||||
return attrs
|
return attrs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user