|
@@ -47,7 +47,7 @@ unsigned long loginlog_failedattempts(uint32 ip, unsigned int minutes) {
|
|
|
if( !enabled )
|
|
|
return 0;
|
|
|
|
|
|
- if( SQL_ERROR == Sql_Query(sql_handle, "SELECT count(*) FROM `%s` WHERE `ip` = '%s' AND `rcode` = '1' AND `time` > NOW() - INTERVAL %d MINUTE",
|
|
|
+ if( SQL_ERROR == Sql_Query(sql_handle, "SELECT count(*) FROM `%s` WHERE `ip` = '%s' AND (`rcode` = '0' OR `rcode` = '1') AND `time` > NOW() - INTERVAL %d MINUTE",
|
|
|
log_login_db, ip2str(ip,NULL), minutes) )// how many times failed account? in one ip.
|
|
|
Sql_ShowDebug(sql_handle);
|
|
|
|