From 8761bef5aa16b6597ce6db953df1eda3d6e10802 Mon Sep 17 00:00:00 2001 From: Mason Payne Date: Mon, 5 May 2025 20:44:38 -0600 Subject: [PATCH] add some spartanAuth login stuff --- webapp/src/stores/authentication.ts | 1 + webapp/src/views/Password.vue | 18 ++++++++++++++++++ webapp/vite.config.ts | 8 +++++++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/webapp/src/stores/authentication.ts b/webapp/src/stores/authentication.ts index 677e512..59c7191 100644 --- a/webapp/src/stores/authentication.ts +++ b/webapp/src/stores/authentication.ts @@ -13,6 +13,7 @@ export const useAuthenticationStore = defineStore('authentication', () => { function logout() { // TODO: make a request to the server to log out the user + localStorage.removeItem('spartan-token'); // special for spartan auth isAuthenticated.value = false; localStorage.setItem('isAuthenticated', 'false'); } diff --git a/webapp/src/views/Password.vue b/webapp/src/views/Password.vue index bf15818..3e3eeeb 100644 --- a/webapp/src/views/Password.vue +++ b/webapp/src/views/Password.vue @@ -3,6 +3,9 @@
Username and password form
+ + +
@@ -10,9 +13,24 @@