سامانه صدور فاکتور و حسابداری
fix(login): activate all auth actions only when handler functions exist
davoodmehraban89 committed
Oct 12, 2026 at 19:38 UTC
73f4c550b069553aaf1efa73123173cd377329a2
1 file changed
+1
-2
js/core.js
+1
-2
@@ -121,8 +121,7 @@ async function initAuthSystem(){
121
const screen=document.getElementById('auth-screen');
122
if(screen)screen.style.display='flex';
123
showAuthPanel('main');
124
- const button=document.getElementById('auth-login-button');
125
- if(button)button.disabled=false;
124
+ if(screen)screen.querySelectorAll('button').forEach(button=>{button.disabled=false;});
125
window.FinoraStartupStatus.authFormReady=true;
126
setAuthLoginStatus('فرم ورود آماده است.','ready');
127
// Remove the legacy plaintext user database that older versions kept in this browser.