Skip to content

Commit

Permalink
Cross Logout issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
amitdugar committed Dec 30, 2019
1 parent 6cfe45b commit f6a7aef
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions module/Application/view/application/login/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -128,32 +128,30 @@ $configResult = $config->fromFile(CONFIG_PATH . '/custom.config.ini');
<script type="text/javascript">
duplicateName = true;
$(document).ready(function() {
<?php if($configResult['vlsm-crosslogin']){?>
if(sessionStorage.getItem("crosslogin") == "true"){
<?php if ($configResult['vlsm-crosslogin']) { ?>
if (sessionStorage.getItem("crosslogin") == "true") {
sessionStorage.setItem("crosslogin", "false");
<?php $crossLoginSession->logged = false;?>
window.location.href = '<?php echo rtrim($configResult['vlsm']['domain'], "/") . '/logout.php';?>';
}
<?php }
<?php $crossLoginSession->logged = false; ?>
$('<iframe src="<?php echo rtrim($configResult['vlsm']['domain'], "/") . '/logout.php'; ?>" frameborder="0" scrolling="no" id="myFrame"></iframe>').appendTo('body');
}
<?php }
if (isset($container->alertMsg) && $container->alertMsg != "") {
?>
alert("<?php echo $container->alertMsg; ?>");
<?php
$container->alertMsg = "";
unset($container->alertMsg);
}
?>
?> alert("<?php echo $container->alertMsg; ?>"); <?php
$container->alertMsg = "";
unset($container->alertMsg);
}
?>
});

function doLogin() {
duplicateName = true;
flag = deforayValidator.init({
formId: 'adminLoginInformation'
});

if (flag) {
challenge_field = document.getElementById("challengeResponse").value;

if (challenge_field != "") {
$.post("<?php echo $this->url('checkcaptcha', array('action' => 'check-captcha')); ?>", {
challenge_field: challenge_field
Expand Down

0 comments on commit f6a7aef

Please sign in to comment.