Skip to content

Commit f2b9335

Browse files
authored
Update login.html
1 parent 4523cef commit f2b9335

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

login.html

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -420,35 +420,9 @@ <h3 style="color: #d4af37; margin-bottom: 15px; text-align: center;">🏛️ SSO
420420
loading.style.display = 'none';
421421
}
422422

423-
// VERIFICA SE JÁ ESTÁ LOGADO
424-
function checkExistingLogin() {
425-
const isLogged = localStorage.getItem("usuario_logado");
426-
const loginTime = localStorage.getItem("usuario_login_time");
427-
428-
if (isLogged === "true" && loginTime) {
429-
const loginDate = new Date(loginTime);
430-
const now = new Date();
431-
const hoursDiff = (now - loginDate) / (1000 * 60 * 60);
432-
433-
if (hoursDiff < 24) {
434-
console.log('✅ Usuário já logado, redirecionando...');
435-
window.location.href = "autoridade.html";
436-
return true;
437-
}
438-
}
439-
440-
// Limpa dados expirados
441-
localStorage.removeItem("usuario_logado");
442-
localStorage.removeItem("usuario_provider");
443-
localStorage.removeItem("usuario_data");
444-
localStorage.removeItem("usuario_login_time");
445-
return false;
446-
}
447-
448-
// INICIALIZAÇÃO
423+
// INICIALIZAÇÃO - REMOVIDA A VERIFICAÇÃO AUTOMÁTICA
449424
document.addEventListener('DOMContentLoaded', function() {
450425
console.log('🚀 Login Terra Dourada carregado');
451-
checkExistingLogin();
452426

453427
// Fecha modal se clicar fora
454428
document.getElementById('ssoModal').addEventListener('click', function(e) {

0 commit comments

Comments
 (0)