add auth successful message to login

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-09 15:20:34 -08:00
parent 0740d65363
commit cf96ffe561

View File

@ -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) {