fix ticket saving

This commit is contained in:
Arthur Lu 2022-12-12 15:13:43 -08:00
parent 87806a9aaa
commit 90ef6bca81

View File

@ -10,7 +10,7 @@ function init (){
let formData = new FormData(form); let formData = new FormData(form);
try { try {
let ticket = await requestTicket(formData.get("username"), formData.get("password")); let ticket = await requestTicket(formData.get("username"), formData.get("password"));
await setTicket(ticket); await setTicket(ticket.data.ticket);
window.location.href = "index.html"; window.location.href = "index.html";
} }
catch (error) { catch (error) {