From 6bb4e9ac44a9a474361178f5f6d3d721e7ad89a4 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 9 Oct 2023 23:46:28 +0300 Subject: [PATCH] new yandex --- templates/profile.html | 2 +- templates/welcome.html | 2 +- web/views/yandex_auth.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index 07f4861..0f5b375 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 833917c..4c5dca3 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 5310d10..7bc9e66 100644 --- a/web/views/yandex_auth.py +++ b/web/views/yandex_auth.py @@ -13,7 +13,7 @@ class YandexAuthView(BaseView): def get(self): code = self.request.GET['code'] response = post('https://oauth.yandex.ru/token', data={ - 'client_id': '38f1906e99de4810bd79828f420ba885', + 'client_id': '2c5235f2ce5b4665856d15f70aa876f2', 'client_secret': settings.YANDEX_SERVICE_TOKEN, 'grant_type': 'authorization_code', 'code': code