aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/policy
diff options
context:
space:
mode:
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);
}