teste login
Deploy / Deploy (push) Successful in 1m45s Details

This commit is contained in:
JotaChina 2025-12-09 18:21:40 -03:00
parent 95ef732d31
commit c696361996
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ permalink: /envie_seu_projeto/
<h3 class="title is-4 has-text-grey-dark">Login Necessário</h3> <h3 class="title is-4 has-text-grey-dark">Login Necessário</h3>
<p class="mb-5">Você precisa estar logado para enviar projetos e samples para a comunidade.</p> <p class="mb-5">Você precisa estar logado para enviar projetos e samples para a comunidade.</p>
<div class="buttons is-centered"> <div class="buttons is-centered">
<a href="/login/" class="button is-info is-medium"> <a href="/mmpSearch/login/" class="button is-info is-medium">
<span class="icon"><i class="fa-solid fa-right-to-bracket"></i></span> <span class="icon"><i class="fa-solid fa-right-to-bracket"></i></span>
<span>Fazer Login / Cadastrar</span> <span>Fazer Login / Cadastrar</span>
</a> </a>

View File

@ -62,7 +62,7 @@ document.addEventListener('DOMContentLoaded', () => {
msgBox.classList.remove('is-hidden'); msgBox.classList.remove('is-hidden');
msgBox.textContent = data.message; msgBox.textContent = data.message;
msgBox.className = res.ok ? "notification is-success is-light mt-4" : "notification is-danger is-light mt-4"; 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); 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'); } } catch(e) { msgBox.textContent = "Erro de conexão"; msgBox.classList.remove('is-hidden'); }
} }