diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-23 22:14:44 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-23 22:17:09 +0100 |
| commit | aeb9ecadf80fd50290571071311877b39c80e962 (patch) | |
| tree | b9a5cbe979fbd4fb14c97b00534b6918df6b0d85 /views/success.html | |
Initial implementation1.0.0
Diffstat (limited to 'views/success.html')
| -rw-r--r-- | views/success.html | 24 |
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> |