mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-18 00:12:16 +09:00
Fix invalid query argument that causes error upon login #2691
This commit is contained in:
parent
e30e789586
commit
76a6bb56b0
1 changed files with 4 additions and 3 deletions
|
|
@ -2535,8 +2535,6 @@ class MemberController extends Member
|
|||
|
||||
// check IP access count.
|
||||
$config = MemberModel::getMemberConfig();
|
||||
$args = new stdClass();
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$used_identifier = null;
|
||||
|
||||
// check identifier
|
||||
|
|
@ -2614,6 +2612,8 @@ class MemberController extends Member
|
|||
return $this->recordLoginError(-1, 'invalid_user_id');
|
||||
}
|
||||
|
||||
$args = new stdClass;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$output = executeQuery('member.getLoginCountByIp', $args);
|
||||
$errorCount = $output->data->count;
|
||||
if($errorCount >= $config->max_error_count)
|
||||
|
|
@ -2632,7 +2632,6 @@ class MemberController extends Member
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$output = executeQuery('member.deleteLoginCountByIp', $args);
|
||||
}
|
||||
}
|
||||
|
|
@ -2680,6 +2679,8 @@ class MemberController extends Member
|
|||
if($oDB->isTableExists('member_count_history') && $config->enable_login_fail_report != 'N')
|
||||
{
|
||||
// check if there is login fail records.
|
||||
$args = new stdClass;
|
||||
$args->member_srl = $member_info->member_srl;
|
||||
$output = executeQuery('member.getLoginCountHistoryByMemberSrl', $args);
|
||||
if($output->data && $output->data->content)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue