Fixed Server Error Issue On Login
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user