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 dace5237c8
commit eed1678b90

View File

@ -15,6 +15,8 @@ function init (){
status.innerText = "Authenticating..."; status.innerText = "Authenticating...";
let ticket = await requestTicket(formData.get("username"), formData.get("password")); let ticket = await requestTicket(formData.get("username"), formData.get("password"));
setTicket(ticket.data.ticket, ticket.data.CSRFPreventionToken); setTicket(ticket.data.ticket, ticket.data.CSRFPreventionToken);
status.innerText = "Authentication successful!"
status.style.color = "#00ff00";
goToPage("index.html"); goToPage("index.html");
} }
catch (error) { catch (error) {