fix login form key issue

This commit is contained in:
Arthur Lu 2022-12-12 15:00:32 -08:00
parent 1473626373
commit f1e705ae5e

View File

@ -11,7 +11,7 @@ async function loginFormSubmitHandler () {
let form = document.querySelector("form");
let formData = new FormData(form);
try {
let ticket = await requestTicket(formData.username, formData.password);
let ticket = await requestTicket(formData.get("username"), formData.get("password"));
await setTicket(ticket);
window.location.href = "index.html";
}