mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 22:37:42 +02:00
BUG Resolve issue with error redirection being ignored within CMS BUG Fix issue with invalid securityID being re-emitted on failure
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>
|