fix ticket saving
This commit is contained in:
parent
87806a9aaa
commit
90ef6bca81
2
login.js
2
login.js
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user