Fix: services pagination. Fix: login/signup auto-redirect to homepage if already logged in

This commit is contained in:
hyzen
2026-06-09 12:02:55 +05:30
parent 4094266e78
commit 9fdcfdd885
8 changed files with 25 additions and 42 deletions

View File

@@ -100,9 +100,6 @@
'auth-message auth-message--success';
document.getElementById('auth-message').style.display = 'block';
document.getElementById('login-form').style.display = 'none';
setTimeout(function () {
window.location.href = '/';
}, 1500);
return;
}
@@ -130,6 +127,7 @@
var submitBtn = document.getElementById('login-submit');
var eyeBtn = form.querySelector('.auth-form__eye');
var pwdInput = document.getElementById('login-password');
var pwdInput = document.getElementById('login-password');
eyeBtn.addEventListener('click', function () {
var isText = pwdInput.type === 'text';