24mar26
This commit is contained in:
@@ -600,10 +600,11 @@
|
||||
}
|
||||
|
||||
#login-overlay.hidden {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#login-overlay { display: none !important; }
|
||||
|
||||
.login-card {
|
||||
width: 90%;
|
||||
max-width: 400px;
|
||||
@@ -1575,21 +1576,9 @@
|
||||
window.toggleRecording = toggleRecording;
|
||||
|
||||
// Auto-login se já tiver senha salva
|
||||
if (webPassword) {
|
||||
(async () => {
|
||||
try {
|
||||
const res = await fetch('/api/login', { headers: { 'X-Web-Password': webPassword } });
|
||||
if (res.ok) {
|
||||
document.getElementById('login-overlay').classList.add('hidden');
|
||||
initDashboard();
|
||||
} else {
|
||||
showLoginOverlay();
|
||||
}
|
||||
} catch (e) { showLoginOverlay(); }
|
||||
})();
|
||||
} else {
|
||||
showLoginOverlay();
|
||||
}
|
||||
// Autenticação desativada - Inicia direto
|
||||
document.getElementById('login-overlay').classList.add('hidden');
|
||||
initDashboard();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user