diff --git a/index.html b/index.html
index ed4887f..0b4c00a 100644
--- a/index.html
+++ b/index.html
@@ -200,7 +200,7 @@ body{font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
@@ -705,8 +705,10 @@ function doRegister(){
setTimeout(()=>{switchLoginTab('login');ok.style.display='none'},2000);
}
function doLogin(){
- const u=document.getElementById('loginUser').value.trim().toLowerCase();
- const p=document.getElementById('loginPass').value.trim();const err=document.getElementById('loginError');
+ var u=document.getElementById('loginUser').value.trim().toLowerCase();
+ var p=document.getElementById('loginPass').value.trim();
+ var err=document.getElementById('loginError');
+ console.log('doLogin called', u, p);
const all=getAllUsers();if(!all[u]||all[u].pass!==p){err.style.display='block';return}
err.style.display='none';currentUser={login:u,...all[u]};
localStorage.setItem('safetyAuditUser',JSON.stringify(currentUser));