Fixed Server Error Issue On Login
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<div class="login-card">
|
||||
<div class="brand-section">
|
||||
<div class="logo-icon">S</div>
|
||||
<h1>Welcome Back</h1>
|
||||
<h1>Welcome Back!</h1>
|
||||
<p>Enter your details below</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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