mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
38 lines
804 B
Scheme
38 lines
804 B
Scheme
|
<!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>
|