From 496e36be974490f30f0f306560249c1ab16d2ca2 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 14 Apr 2016 17:50:21 +0000 Subject: [PATCH] Added debug to user auth api messages git-svn-id: svn://192.168.202.10@2516 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/api.php | 4 ++-- agc_2-X/trunk/www/agc/functions.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index 3127dbc0..957089e4 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -393,7 +393,7 @@ else else { $auth=0; - $auth_message = user_authorization($user,$pass,'',0,0,0); + $auth_message = user_authorization($user,$pass,'',0,0,0,1); if ($auth_message == 'GOOD') {$auth=1;} @@ -409,7 +409,7 @@ else $result = _QXZ("ERROR"); $result_reason = _QXZ("Invalid Username/Password"); echo "$result: $result_reason: |$user|$pass|$auth|$auth_api|$auth_message|\n"; - $data = "$user|$pass|$auth"; + $data = "$user|$pass|$auth|$auth_api|$auth_message|"; api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); exit; } diff --git a/agc_2-X/trunk/www/agc/functions.php b/agc_2-X/trunk/www/agc/functions.php index c7179f1f..eb17f108 100644 --- a/agc_2-X/trunk/www/agc/functions.php +++ b/agc_2-X/trunk/www/agc/functions.php @@ -34,7 +34,7 @@ # $mysql_queries = 20 ##### BEGIN validate user login credentials, check for failed lock out ##### -function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$return_hash) +function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$return_hash,$api_call) { require("dbconnect_mysqli.php"); @@ -201,7 +201,7 @@ function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$retur # $auth_key='ERRPHONES'; # $login_problem++; # } - if ( ($vla_total >= $vla_set) and ($vla_on > 0) ) + if ( ($vla_total >= $vla_set) and ($vla_on > 0) and ($api_call != '1') ) { $auth_key='ERRAGENTS'; $login_problem++;