File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -626,14 +626,16 @@ <h3 id="confirmationElectionName" style="color: #d4af37; margin: 10px 0 20px;"><
626626
627627// NOVA FUNÇÃO: Ir para GPT Assistant
628628function irParaOraculo ( ) {
629- if ( ! usuarioLogado ) {
629+ if ( ! usuarioLogado ) {
630630 alert ( 'Erro: Usuário não identificado. Faça login novamente.' ) ;
631631 window . location . href = 'login.html' ;
632632 return ;
633633 }
634- const userId = encodeURIComponent ( usuarioLogado . email ) ;
634+
635+ // Passar o email do usuário como parâmetro para manter o login
636+ const userId = encodeURIComponent ( usuarioLogado . email ) ;
635637 window . location . href = `oraculo.html?user_id=${ userId } ` ;
636- }
638+ }
637639 // Passar o email do usuário como parâmetro para manter o login
638640 const userId = encodeURIComponent ( usuarioLogado . email ) ;
639641 window . location . href = `index_gpt.html?user_id=${ userId } ` ;
You can’t perform that action at this time.
0 commit comments