fix auth_hash. Should use generateAuthHash instead of accessing session directly

This commit is contained in:
Isaac Connor 2018-10-22 18:32:39 -04:00
parent 9938346752
commit 86b0e4ea18
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ if ( ! empty($refreshParent) ) {
?>;
var closePopup = <?php
if ( ( ! empty($closePopup) ) and ( $closePopup == true ) ) {
echo 'true';
echo 'true';
} else {
echo 'false';
}
@ -67,5 +67,5 @@ var imagePrefix = "<?php echo "?view=image&eid=" ?>";
var auth_hash;
<?php if ( ZM_OPT_USE_AUTH && ZM_AUTH_HASH_LOGINS ) { ?>
auth_hash = '<?php echo isset($_SESSION['AuthHash']) ? $_SESSION['AuthHash'] : ''; ?>';
auth_hash = '<?php echo generateAuthHash(ZM_AUTH_HASH_IPS) ?>';
<?php } ?>