This commit is contained in:
Administrator
2023-09-23 19:10:06 +03:00
parent 59aa298db6
commit 53b9f9d840
7 changed files with 53 additions and 5 deletions

View File

@@ -51,8 +51,8 @@
</td>
<td><div style="width: 20px;"></div></td>
<td>
<a href="https://oauth.vk.com/authorize?client_id=8123759&redirect_uri=http://dev.sprinthub.ru/vk_add&display=page&response_type=token&v=5.59"><img style="width: 40px; height: 40px;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/VK_Compact_Logo_%282021-present%29.svg/1200px-VK_Compact_Logo_%282021-present%29.svg.png"></a>
{% if account.vk_user_id %}
<a href="https://oauth.vk.com/authorize?client_id=51755815&redirect_uri=https://platform.sprinthub.ru/vk_auth&display=page&response_type=token&v=5.59';"><img style="width: 40px; height: 40px;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/VK_Compact_Logo_%282021-present%29.svg/1200px-VK_Compact_Logo_%282021-present%29.svg.png"></a>
{% if account.vk_id %}
<div style="margin-top: -15px; margin-left: 30px;"><i style="color: green;" class="fa fa-check-circle"></i></div>
{% endif %}
</td>

11
templates/vk_auth.html Normal file
View File

@@ -0,0 +1,11 @@
{% extends 'layouts/base.html' %}
{% block onload %}onLoad();{% endblock %}
{% block javascripts %}
<script>
function onLoad() {
window.location.href = window.location.href.replace('#', '?');
}
</script>
{% endblock %}