diff --git a/templates/profile.html b/templates/profile.html
index 0f5b375..07f4861 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -55,7 +55,7 @@
{% if account.vk_id %}
{% endif %}
-
+
{% if account.yandex_id %}
{% endif %}
diff --git a/templates/welcome.html b/templates/welcome.html
index 4c5dca3..833917c 100644
--- a/templates/welcome.html
+++ b/templates/welcome.html
@@ -20,7 +20,7 @@
или войти с помощью
-
+
diff --git a/web/views/yandex_auth.py b/web/views/yandex_auth.py
index c8f61a7..b64ecec 100644
--- a/web/views/yandex_auth.py
+++ b/web/views/yandex_auth.py
@@ -12,7 +12,7 @@ class YandexAuthView(BaseView):
def get(self):
code = self.request.GET['code']
response = post('https://oauth.yandex.ru/token', data={
- 'client_id': '2c5235f2ce5b4665856d15f70aa876f2',
+ 'client_id': '38f1906e99de4810bd79828f420ba885',
'client_secret': settings.YANDEX_SERVICE_TOKEN,
'grant_type': 'authorization_code',
'code': code
@@ -33,11 +33,11 @@ class YandexAuthView(BaseView):
data = info_response.json()
yandex_id = data['id']
if self.request.user.is_authenticated:
- print('Got yandex_id %s writing to db' + str(yandex_id) + " " + type(yandex_id))
+ print('Got yandex_id writing to db ' + str(yandex_id))
self.request.user.yandex_id = yandex_id
self.request.user.save()
else:
- print('Got yandex_id %s logging in' + str(yandex_id) + " " + type(yandex_id))
+ print('Got yandex_id logging in' + str(yandex_id))
user = CustomUser.objects.filter(yandex_id=yandex_id).first()
if user is not None:
login(self.request, user)