Added debug to user auth api messages
git-svn-id: svn://192.168.202.10@2516 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user