add auth successful message to login
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
0740d65363
commit
cf96ffe561
@ -15,6 +15,8 @@ function init (){
|
||||
status.innerText = "Authenticating...";
|
||||
let ticket = await requestTicket(formData.get("username"), formData.get("password"));
|
||||
setTicket(ticket.data.ticket, ticket.data.CSRFPreventionToken);
|
||||
status.innerText = "Authentication successful!"
|
||||
status.style.color = "#00ff00";
|
||||
goToPage("index.html");
|
||||
}
|
||||
catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user