Create route and handler for authentication

This commit is contained in:
2024-08-13 13:26:38 +02:00
parent aab0ef380a
commit b37dcf89fd
5 changed files with 77 additions and 1 deletions

View File

@ -1,5 +1,5 @@
export function val(api) {
let form = document.getElementById("login_form");
let form = document.getElementById("login-form");
if (form.checkValidity() === false) {
this.event.preventDefault();