aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/policy
diff options
context:
space:
mode:
authorM.Gergo2021-05-17 17:50:05 +0200
committerM.Gergo2021-05-17 17:50:05 +0200
commitef8b3fd973fa34b303370d5acc21744e57bca507 (patch)
tree67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-base/www/policy
parentfb24a50c54d5776468e49def08aea44c4077eb47 (diff)
downloadmayor-rev4787.tar.gz
mayor-rev4787.zip
Rev: 4787rev4787
Diffstat (limited to 'mayor-orig/mayor-base/www/policy')
-rw-r--r--mayor-orig/mayor-base/www/policy/private/session/googleapi-pre.php2
-rw-r--r--mayor-orig/mayor-base/www/policy/public/auth/login.php2
2 files changed, 2 insertions, 2 deletions
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);
}