This commit is contained in:
Egor Matveev
2022-04-02 18:42:58 +03:00
parent 5f80636349
commit fa65d90a65
12 changed files with 108 additions and 3 deletions

View File

@@ -85,6 +85,17 @@
<p style="padding-top: 8px; font-size: 24px;">{{ account.date_joined.date }}</p>
</td>
</tr>
{% if account == user %}
<tr>
<td>
<h2><i class="fa fa-users"></i></h2>
</td>
<td><div style="width: 20px;"></div></td>
<td>
<a href="https://oauth.vk.com/authorize?client_id=8123759&redirect_uri=http://demo.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>
</td>
</tr>
{% endif %}
<tr>
<td>
<h2><i class="fa fa-desktop"></i></h2>

View File

@@ -55,7 +55,9 @@
</div>
<div>
<a href="https://t.me/sprint_notifications_bot" target="_blank" class="sub btn btn-dark form">Регистрация</a>
</div>
</div><br>
или войти с помощью<br><br>
<a href="https://oauth.vk.com/authorize?client_id=8123759&redirect_uri=http://demo.dev.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>
</center>
</div>
{% endblock %}

9
templates/vk_auth.html Normal file
View File

@@ -0,0 +1,9 @@
{% extends 'base_main.html' %}
{% block scripts %}
function onLoad() {
window.location.href = window.location.href.replace('#', '?');
}
{% endblock %}
{% block onload %}onLoad(){% endblock %}