aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/include/base
diff options
context:
space:
mode:
authorM.Gergo2018-07-23 11:58:31 +0200
committerM.Gergo2018-07-23 11:58:31 +0200
commit2f5969b827ff17ee05e05f46025367017fdfcf44 (patch)
treecb9e56d5212cd12874bb1ae00812bf2e3bcbbd34 /mayor-orig/www/include/base
parent0b26d2d6860e7fe428930b97dc953895aa1ca30c (diff)
downloadmayor-2f5969b827ff17ee05e05f46025367017fdfcf44.tar.gz
mayor-2f5969b827ff17ee05e05f46025367017fdfcf44.zip
Rev: 4340
Diffstat (limited to 'mayor-orig/www/include/base')
-rw-r--r--mayor-orig/www/include/base/log.php2
-rw-r--r--mayor-orig/www/include/base/login.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mayor-orig/www/include/base/log.php b/mayor-orig/www/include/base/log.php
index 45c669e4..0b8f6fd1 100644
--- a/mayor-orig/www/include/base/log.php
+++ b/mayor-orig/www/include/base/log.php
@@ -10,7 +10,7 @@
return ($_SERVER['HTTP_X_FORWARDED_FOR']!='')?$_SERVER['HTTP_X_FORWARDED_FOR']:$_SERVER['REMOTE_ADDR'];
}
- function logLogin($policy, $userAccount, $flag) {
+ function logLogin($policy, $userAccount, $flag) { //loginLog
$q = "INSERT INTO loginLog (dt,ip,userAccount,policy,flag) VALUES (NOW(),'%s','%s','%s', %u)";
db_query($q, array('fv' => 'logLogin', 'modul' => 'login', 'values' => array(_clientIp(), $userAccount, $policy, $flag)));
}
diff --git a/mayor-orig/www/include/base/login.php b/mayor-orig/www/include/base/login.php
index f244b90a..da3217a9 100644
--- a/mayor-orig/www/include/base/login.php
+++ b/mayor-orig/www/include/base/login.php
@@ -86,8 +86,8 @@
}
} else {
$result = userAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy); // ??? toPolicy benne van az AccountInformation-ben!!! Ldap backend only?
- logLogin($toPolicy, $userAccount, $result);
}
+ logLogin($toPolicy, $userAccount, $result);
define('_MAYORAUTHRESULT',$result);
if ($result === _AUTH_SUCCESS) {