From cf96ffe561406ff9229d88589ee26f6d6e6caff9 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 9 Jan 2023 15:20:34 -0800 Subject: [PATCH] add auth successful message to login Signed-off-by: Arthur Lu --- scripts/login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/login.js b/scripts/login.js index 29ce22c..51ffeb3 100644 --- a/scripts/login.js +++ b/scripts/login.js @@ -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) {