From 9f89ccfa32ad06c19827ee7d16b933d04eb16682 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 24 Jan 2018 07:46:56 -0500 Subject: [PATCH] revert issue with AUTH_HASH_LOGINS --- web/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 51884f1d0..b2afc8681 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -148,7 +148,7 @@ function getAuthUser( $auth ) { } // end getAuthUser($auth) function generateAuthHash( $useRemoteAddr ) { - if ( ZM_OPT_USE_AUTH and ZM_AUTH_HASH_LOGINS and ZM_AUTH_RELAY == 'hashed' and isset($_SESSION['username']) and $_SESSION['passwordHash'] ) { + if ( ZM_OPT_USE_AUTH and ZM_AUTH_RELAY == 'hashed' and isset($_SESSION['username']) and $_SESSION['passwordHash'] ) { # regenerate a hash at half the liftetime of a hash, an hour is 3600 so half is 1800 $time = time(); if ( ( ! isset($_SESSION['AuthHash']) ) or ( $_SESSION['AuthHashGeneratedAt'] < ( $time - ( ZM_AUTH_HASH_TTL * 1800 ) ) ) ) {