Merge branch 'develop' of ssh://gl.id-east.ru:222/gm/gm-backend into develop

This commit is contained in:
Dmitriy Kuzmenko 2019-11-04 11:35:25 +03:00
commit 623a90e6a7

View File

@ -113,7 +113,7 @@ class OAuth2SignUpView(OAuth2ViewMixin, JWTGenericViewMixin):
# Check OAuth2 response
if oauth2_status != status.HTTP_200_OK:
raise utils_exceptions.OAuth2Error()
raise utils_exceptions.OAuth2Error(detail=body)
# Get authenticated user
user = User.objects.by_oauth2_access_token(token=body.get('access_token'))\