mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 18:43:44 +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
|
||||
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
|
||||
|
@ -47,7 +47,7 @@ class SocialLoginSerializer(serializers.Serializer):
|
|||
token.app = app
|
||||
|
||||
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)
|
||||
except HTTPError:
|
||||
raise serializers.ValidationError('Incorrect value')
|
||||
|
|
Loading…
Reference in New Issue
Block a user