mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-05-29 10:13:20 +03:00
Add McCabe complexity checker
This commit is contained in:
parent
43d3fd6fbc
commit
ca222d7f92
|
@ -58,7 +58,7 @@ class SocialLoginSerializer(serializers.Serializer):
|
||||||
social_login.token = token
|
social_login.token = token
|
||||||
return social_login
|
return social_login
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs): # noqa: C901
|
||||||
view = self.context.get('view')
|
view = self.context.get('view')
|
||||||
request = self._get_request()
|
request = self._get_request()
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ class LoginSerializer(serializers.Serializer):
|
||||||
|
|
||||||
return user
|
return user
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs): # noqa: C901
|
||||||
username = attrs.get('username')
|
username = attrs.get('username')
|
||||||
email = attrs.get('email')
|
email = attrs.get('email')
|
||||||
password = attrs.get('password')
|
password = attrs.get('password')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user