File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments