Fixed Server Error Issue On Login

This commit is contained in:
2026-01-30 21:04:20 +11:00
parent 430eef5f23
commit cd86af0526
2 changed files with 3 additions and 2 deletions

View File

@@ -315,7 +315,7 @@ document.addEventListener('DOMContentLoaded', () => {
function updateUI() {
if (!title || !subtitle || !btnText || !confirmPasswordGroup) return;
if (isLoginMode) {
title.innerText = 'Welcome Back';
title.innerText = 'Welcome Back!';
subtitle.innerText = 'Enter your details below';
btnText.innerText = 'Sign In';
const helper = document.querySelector('.signup-link');
@@ -419,6 +419,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
} catch (err) {
console.error(err);
alert('Login Failed: ' + err.message);
showFeedback(false, 'Server Error');
}
});