add csrf token saving
This commit is contained in:
@@ -13,7 +13,7 @@ function init (){
|
||||
try {
|
||||
status.innerText = "Authenticating...";
|
||||
let ticket = await requestTicket(formData.get("username"), formData.get("password"));
|
||||
setTicket(ticket.data.ticket);
|
||||
setTicket(ticket.data.ticket, ticket.data.CSRFPreventionToken);
|
||||
window.location.href = "index.html";
|
||||
}
|
||||
catch (error) {
|
||||
|
Reference in New Issue
Block a user