Fixed Server Error Issue On Login
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<div class="login-card">
|
<div class="login-card">
|
||||||
<div class="brand-section">
|
<div class="brand-section">
|
||||||
<div class="logo-icon">S</div>
|
<div class="logo-icon">S</div>
|
||||||
<h1>Welcome Back</h1>
|
<h1>Welcome Back!</h1>
|
||||||
<p>Enter your details below</p>
|
<p>Enter your details below</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
function updateUI() {
|
function updateUI() {
|
||||||
if (!title || !subtitle || !btnText || !confirmPasswordGroup) return;
|
if (!title || !subtitle || !btnText || !confirmPasswordGroup) return;
|
||||||
if (isLoginMode) {
|
if (isLoginMode) {
|
||||||
title.innerText = 'Welcome Back';
|
title.innerText = 'Welcome Back!';
|
||||||
subtitle.innerText = 'Enter your details below';
|
subtitle.innerText = 'Enter your details below';
|
||||||
btnText.innerText = 'Sign In';
|
btnText.innerText = 'Sign In';
|
||||||
const helper = document.querySelector('.signup-link');
|
const helper = document.querySelector('.signup-link');
|
||||||
@@ -419,6 +419,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
alert('Login Failed: ' + err.message);
|
||||||
showFeedback(false, 'Server Error');
|
showFeedback(false, 'Server Error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user