teste login

This commit is contained in:
JotaChina committed 2025-12-09 18:21:40 -03:00
1 parent 53d65b6f91
commit a298025145
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ document.addEventListener('DOMContentLoaded', () => {
msgBox.classList.remove('is-hidden');
msgBox.textContent = data.message;
msgBox.className = res.ok ? "notification is-success is-light mt-4" : "notification is-danger is-light mt-4";
if(res.ok && url.includes('login')) setTimeout(() => window.location.href = '/envie_seu_projeto/', 1000);
if(res.ok && url.includes('login')) setTimeout(() => window.location.href = '/mmpSearch/', 1000);
if(res.ok && url.includes('register')) setTimeout(() => document.getElementById('toggle-login').click(), 1500);
} catch(e) { msgBox.textContent = "Erro de conexão"; msgBox.classList.remove('is-hidden'); }
}