redirect to the page after auth

This commit is contained in:
Ivan
2023-10-02 16:06:14 +03:00
parent 0edac502e0
commit 3a47d54380
3 changed files with 44 additions and 29 deletions

View File

@ -64,7 +64,7 @@
xhr.onload = function() {
if (xhr.status === 200) {
location.href = '/';
location.href = '/{{Page}}';
} else if (xhr.status === 401) {
alert('Неверный логин или пароль');
} else {