mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge remote-tracking branch 'naderman/ticket/10247' into prep-release-3.0.9
* naderman/ticket/10247: [ticket/10247] Use COUNT(*) instead of COUNT(attempt_id)
This commit is contained in:
commit
c916d49ddd
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
|
||||||
if (($ip && !$config['ip_login_limit_use_forwarded']) ||
|
if (($ip && !$config['ip_login_limit_use_forwarded']) ||
|
||||||
($forwarded_for && $config['ip_login_limit_use_forwarded']))
|
($forwarded_for && $config['ip_login_limit_use_forwarded']))
|
||||||
{
|
{
|
||||||
$sql = 'SELECT COUNT(attempt_id) AS attempts
|
$sql = 'SELECT COUNT(*) AS attempts
|
||||||
FROM ' . LOGIN_ATTEMPT_TABLE . '
|
FROM ' . LOGIN_ATTEMPT_TABLE . '
|
||||||
WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
|
WHERE attempt_time > ' . (time() - (int) $config['ip_login_limit_time']);
|
||||||
if ($config['ip_login_limit_use_forwarded'])
|
if ($config['ip_login_limit_use_forwarded'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue