redirect to the page after auth
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
<div><img src="../../img/play.svg">Записи</div>
|
||||
</a>
|
||||
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
|
||||
<div><img src="../img/bug.svg">Собщить об ошибке</div>
|
||||
<div><img src="../../img/bug.svg">Собщить об ошибке</div>
|
||||
</a>
|
||||
<a class="admin-panel" href="/admin">
|
||||
<div class="selected"><img src="../../img/keyboard.svg">Админка</div>
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
xhr.onload = function() {
|
||||
if (xhr.status === 200) {
|
||||
location.href = '/';
|
||||
location.href = '/{{Page}}';
|
||||
} else if (xhr.status === 401) {
|
||||
alert('Неверный логин или пароль');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user