Titan/webapp/titanembeds/templates/signin_complete.html.j2
2020-11-30 05:20:58 -08:00

18 lines
712 B
Django/Jinja

<!DOCTYPE html>
<html>
<head>
<title>Sign in completed - Titan Embeds</title>
</head>
<body>
<p>Sign in complete! You may now close the window.</p>
<script src="https://cdnjs.cloudflare.com/ajax/libs/post-robot/10.0.42/post-robot.min.js" integrity="sha512-8rkatbA3uOONyiRqBiT5dvzaE7hWX6m0SpVr/4rpAxxuZX+Vjuvqp+DSmF1sQX3268hMk8BZxHVRdgHmuoDhXQ==" crossorigin="anonymous"></script>
<script>
const session = {{ session|tojson|safe }};
postRobot
.send(window.opener, 'setSession', { session: session })
.then(function () {
window.close();
});
</script>
</body>
</html>