|
|
@@ -358,6 +358,10 @@ function updateUserDisplay() {
|
|
|
function showUserSection() {
|
|
|
document.getElementById('authSection').style.display = 'none';
|
|
|
document.getElementById('userSection').classList.add('active');
|
|
|
+
|
|
|
+ // Ensure the main header is visible in user section
|
|
|
+ document.querySelector('.header').style.display = 'block';
|
|
|
+
|
|
|
updateUserDisplay();
|
|
|
}
|
|
|
|
|
|
@@ -366,6 +370,9 @@ function showResetPasswordSection() {
|
|
|
document.getElementById('userSection').classList.remove('active');
|
|
|
document.getElementById('resetPasswordSection').style.display = 'block';
|
|
|
|
|
|
+ // Hide the main header to avoid duplicate headers
|
|
|
+ document.querySelector('.header').style.display = 'none';
|
|
|
+
|
|
|
// Focus on the first input field
|
|
|
document.getElementById('resetNewPassword').focus();
|
|
|
}
|
|
|
@@ -383,6 +390,9 @@ function logout() {
|
|
|
document.getElementById('userSection').classList.remove('active');
|
|
|
document.getElementById('authSection').style.display = 'block';
|
|
|
|
|
|
+ // Show the main header when returning to auth section
|
|
|
+ document.querySelector('.header').style.display = 'block';
|
|
|
+
|
|
|
document.getElementById('loginForm').reset();
|
|
|
document.getElementById('registerForm').reset();
|
|
|
|