aboutsummaryrefslogtreecommitdiff
path: root/views/success.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/success.html')
-rw-r--r--views/success.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/success.html b/views/success.html
new file mode 100644
index 0000000..dc764d9
--- /dev/null
+++ b/views/success.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Login Successful</title>
+ <link rel="stylesheet" href="/security/dialog.css">
+ <script>
+ // Set the login state cookie so the parent window detects the change
+ const hostname = window.location.hostname;
+ document.cookie = `state=loggedIn;domain=.${hostname}; path=/; max-age=60; sameSite=Strict;`;
+ window.opener?.postMessage({ event: 'loginDone' }, '*');
+
+
+ // Close the popup after a brief delay
+ setTimeout(() => {
+ window.close();
+ }, 1000);
+ </script>
+</head>
+<body>
+ <h1>Login Successful</h1>
+ <p>Welcome, {{username}}!</p>
+ <p>This window will close automatically...</p>
+</body>
+</html>