diff --git a/web/views/yandex_auth.py b/web/views/yandex_auth.py index cb2a7a2..5310d10 100644 --- a/web/views/yandex_auth.py +++ b/web/views/yandex_auth.py @@ -34,9 +34,11 @@ class YandexAuthView(BaseView): data = info_response.json() yandex_id = data['id'] if self.request.user.is_authenticated: + print('Got yandex_id', yandex_id, 'writing to db') self.request.user.yandex_id = yandex_id self.request.user.save() else: + print('Got yandex_id', yandex_id, 'logging in') user = CustomUser.objects.filter(yandex_id=yandex_id).first() if user is not None: login(self.request, user)