mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-26 02:53:46 +03:00
Make names more consistent
This commit is contained in:
parent
f43a6b8d58
commit
a9d2a24011
|
@ -13,7 +13,7 @@ class SocialLoginSerializer(serializers.Serializer):
|
||||||
request = request._request
|
request = request._request
|
||||||
return request
|
return request
|
||||||
|
|
||||||
def get_social_account(self, adapter, app, token, response):
|
def get_social_login(self, adapter, app, token, response):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter
|
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter
|
||||||
|
@ -47,7 +47,7 @@ class SocialLoginSerializer(serializers.Serializer):
|
||||||
token.app = app
|
token.app = app
|
||||||
|
|
||||||
try:
|
try:
|
||||||
login = self.get_social_account(adapter, app, token, access_token)
|
login = self.get_social_login(adapter, app, token, access_token)
|
||||||
complete_social_login(request, login)
|
complete_social_login(request, login)
|
||||||
except HTTPError:
|
except HTTPError:
|
||||||
raise serializers.ValidationError('Incorrect value')
|
raise serializers.ValidationError('Incorrect value')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user