Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
script.js 392 B
Newer Older
  • Learn to ignore specific revisions
  • document.getElementById('admin-login-form').onsubmit = function (e) {
        e.preventDefault();
        fetch('/admin/login', { method: 'POST', body: new URLSearchParams(new FormData(e.target)) }).then(res => {
            if (res.status >= 200 && res.status < 400) {
                console.log(res)
                window.location = '/admin/auth/workspace';
            }
    
        }).catch(err => console.log(err))
    }