CMSSecurity_success.ss
804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
	<head>
		<% base_tag %>
		<title>$Title</title>
	</head>
	<body class="cms cms-security">
		<h1>$Title</h1>
		<% if $Content %>
			<div class="Content">$Content</div>
		<% end_if %>
		<script type="text/javascript">
			// Ensure top level section is updated
			(function($) {
				$(function() {
					var securityID = '{$SecurityID.JS}',
						memberToken = '{$CurrentMember.TempIDHash.JS}',
						domain = $.path.parseUrl(window.location.href).domain;
					window.top.postMessage(
						JSON.stringify({
							type: 'callback',
							callback: 'reauthenticate',
							target: '.leftandmain-logindialog',
							data: {
								'SecurityID': securityID,
								'TempID': memberToken
							}
						}),
						domain
					);
				});
			})(jQuery);
		</script>
	</body>
</html>