Browse Source

fix: remove auto-redirect from login page — always show login form, fixes production auth loop without affecting local

Made-with: Cursor
pull/6453/head
Priyanka Punukollu 1 month ago
parent
commit
e58922bd96
  1. 7
      agent/login.html

7
agent/login.html

@ -249,13 +249,6 @@
const btnEl = document.getElementById('sign-in-btn');
const errorEl = document.getElementById('error-msg');
// Redirect if already logged in
console.log('[LOGIN] page load — checking token');
if (localStorage.getItem('gf_token')) {
console.log('[LOGIN] token exists — redirecting to chat');
window.location.replace('/');
}
// Enter key submits
[emailEl, passEl].forEach((el) => {
el.addEventListener('keydown', (e) => {

Loading…
Cancel
Save