fix login form key issue
This commit is contained in:
parent
12089dcf9c
commit
ce4bf30e4b
2
login.js
2
login.js
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user