mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
Fix #1468 inconsistent use of REMOTE_ADDR vs. RX_CLIENT_IP
This commit is contained in:
parent
996ca166e8
commit
2d6a175b19
11 changed files with 24 additions and 32 deletions
|
|
@ -2365,7 +2365,7 @@ class memberController extends member
|
|||
// check IP access count.
|
||||
$config = MemberModel::getMemberConfig();
|
||||
$args = new stdClass();
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
|
||||
// check identifier
|
||||
if((!$config->identifiers || in_array('email_address', $config->identifiers)) && strpos($user_id, '@') !== false)
|
||||
|
|
@ -2440,7 +2440,7 @@ class memberController extends member
|
|||
}
|
||||
else
|
||||
{
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$output = executeQuery('member.deleteLoginCountByIp', $args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue