Remove: login/signup page footers if user is already logged in

This commit is contained in:
hyzen
2026-06-10 16:51:40 +05:30
parent f6e8f88410
commit ba54dd4bc9
4 changed files with 6 additions and 4 deletions

View File

@@ -165,7 +165,7 @@
</div>
</div>
<p class="auth-card__footer">
<p class="auth-card__footer" id="signup-footer">
Already have an account? <a href="/login/" class="auth-card__link">Log in</a>
</p>
</div>
@@ -181,6 +181,7 @@
document.getElementById('auth-message').className =
'auth-message auth-message--success is-visible';
document.getElementById('signup-form').style.display = 'none';
document.getElementById('signup-footer').style.display = 'none';
return;
}