blob: dc764d99c8926a4020d9b61e8dbef0446bbafc45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
|