fix ticket saving
This commit is contained in:
parent
3bf0f9d0e4
commit
942b9427ea
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