Skip to content

Commit ce6c38f

Browse files
authored
Update autoridade.html
1 parent e2159bf commit ce6c38f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

autoridade.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
628628
function 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}`;

0 commit comments

Comments
 (0)