diff --git a/public_html/index.html b/public_html/index.html index d2effe6..40621f9 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -959,7 +959,7 @@ window.addEventListener("load", () => { initVoice(); loadVoices(); - // Check if already logged in + // Check if already logged in; send to login.html if not const saved = sessionStorage.getItem('jarvis_token'); const autoReload = sessionStorage.getItem('jarvis_autoreload') === '1'; sessionStorage.removeItem('jarvis_autoreload'); @@ -967,6 +967,8 @@ window.addEventListener("load", () => { sessionToken = saved; sessionUser = sessionStorage.getItem('jarvis_user') || ''; showApp(sessionUser, null, autoReload); + } else { + window.location.replace('/login.html'); } }); diff --git a/public_html/login.html b/public_html/login.html new file mode 100644 index 0000000..472dc5f --- /dev/null +++ b/public_html/login.html @@ -0,0 +1,172 @@ + + + + + +JARVIS — Authentication + + + + + + + + + +
+ +
+
+
+
+
+
+
+
+
+

JARVIS

+

Just A Rather Very Intelligent System

+
+ + + +
+
+
+ +