From ef8b3fd973fa34b303370d5acc21744e57bca507 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Mon, 17 May 2021 17:50:05 +0200 Subject: Rev: 4787 --- mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php | 2 +- mayor-orig/mayor-base/www/policy/public/auth/login.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mayor-orig/mayor-base/www/policy') diff --git a/mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php b/mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php index 49438dcc..62350992 100644 --- a/mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php +++ b/mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php @@ -94,7 +94,7 @@ if ($ADAT['googleSub']=='') return 0; $q = "INSERT IGNORE INTO googleConnect (userAccount,policy,googleSub,googleUserCn,googleUserEmail,studyId) VALUES ('%s','%s','%s','%s','%s','%s')"; $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'googleSub'=>$ADAT['googleSub'],_USERACCOUNT.' ('.$ADAT['googleUserCn'].')',$ADAT['googleUserEmail'],_STUDYID); - return db_query($q,array('debug'=>true,'fv'=>'googleapiGrant','modul'=>'login','result'=>'insert','values'=>$v)); + return db_query($q,array('debug'=>false,'fv'=>'googleapiGrant','modul'=>'login','result'=>'insert','values'=>$v)); } ?> \ No newline at end of file diff --git a/mayor-orig/mayor-base/www/policy/public/auth/login.php b/mayor-orig/mayor-base/www/policy/public/auth/login.php index c86bf24b..c80a0288 100644 --- a/mayor-orig/mayor-base/www/policy/public/auth/login.php +++ b/mayor-orig/mayor-base/www/policy/public/auth/login.php @@ -10,7 +10,7 @@ else putAlreadyLoggedIn(); - if ($_SESSION['authStatus'] == _AUTH_FAILURE) { + if (defined('_AUTH_FAILURE') && $_SESSION['authStatus'] == _AUTH_FAILURE) { putElfelejtettJelszoForm($ADAT); } -- cgit v1.2.3