Version Description
- Blacklisted usernames can't be registered anymore.
Download this release
Release Info
Developer | wpchefgadget |
Plugin | Limit Login Attempts Reloaded |
Version | 2.11.0 |
Comparing to | |
See all releases |
Code changes from version 2.10.1 to 2.11.0
- core/LimitLoginAttempts.php +16 -0
- limit-login-attempts-reloaded.php +2 -2
- readme.txt +5 -2
core/LimitLoginAttempts.php
CHANGED
@@ -68,6 +68,7 @@ class Limit_Login_Attempts
|
|
68 |
add_filter( 'limit_login_whitelist_usernames', array( $this, 'check_whitelist_usernames' ), 10, 2 );
|
69 |
add_filter( 'limit_login_blacklist_ip', array( $this, 'check_blacklist_ips' ), 10, 2 );
|
70 |
add_filter( 'limit_login_blacklist_usernames', array( $this, 'check_blacklist_usernames' ), 10, 2 );
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
@@ -319,6 +320,21 @@ class Limit_Login_Attempts
|
|
319 |
return false;
|
320 |
}
|
321 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
/**
|
323 |
* @param $error IXR_Error
|
324 |
*
|
68 |
add_filter( 'limit_login_whitelist_usernames', array( $this, 'check_whitelist_usernames' ), 10, 2 );
|
69 |
add_filter( 'limit_login_blacklist_ip', array( $this, 'check_blacklist_ips' ), 10, 2 );
|
70 |
add_filter( 'limit_login_blacklist_usernames', array( $this, 'check_blacklist_usernames' ), 10, 2 );
|
71 |
+
add_filter( 'illegal_user_logins', array( $this, 'register_user_blacklist' ), 999 );
|
72 |
}
|
73 |
|
74 |
/**
|
320 |
return false;
|
321 |
}
|
322 |
|
323 |
+
/**
|
324 |
+
* @param $blacklist
|
325 |
+
* @return array|null
|
326 |
+
*/
|
327 |
+
public function register_user_blacklist($blacklist) {
|
328 |
+
|
329 |
+
$black_list_usernames = $this->get_option( 'blacklist_usernames' );
|
330 |
+
|
331 |
+
if(!empty($black_list_usernames) && is_array($black_list_usernames)) {
|
332 |
+
$blacklist += $black_list_usernames;
|
333 |
+
}
|
334 |
+
|
335 |
+
return $blacklist;
|
336 |
+
}
|
337 |
+
|
338 |
/**
|
339 |
* @param $error IXR_Error
|
340 |
*
|
limit-login-attempts-reloaded.php
CHANGED
@@ -5,9 +5,9 @@ Description: Limit the rate of login attempts, including by way of cookies and f
|
|
5 |
Author: WPChef
|
6 |
Author URI: https://wpchef.org
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
-
Version: 2.
|
9 |
|
10 |
-
Copyright 2008 - 2012 Johan Eenfeldt, 2016 -
|
11 |
*/
|
12 |
|
13 |
/***************************************************************************************
|
5 |
Author: WPChef
|
6 |
Author URI: https://wpchef.org
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
+
Version: 2.11.0
|
9 |
|
10 |
+
Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 WPChef
|
11 |
*/
|
12 |
|
13 |
/***************************************************************************************
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wpchefgadget
|
3 |
Tags: brute force, login, security, GDPR, protection
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
|
9 |
|
@@ -51,6 +51,9 @@ Based on the original code from Limit Login Attemps plugin by Johan Eenfeldt.
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 2.10.1 =
|
55 |
* Fixed: GDPR compliance option could not be selected on the multisite installations.
|
56 |
|
2 |
Contributors: wpchefgadget
|
3 |
Tags: brute force, login, security, GDPR, protection
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.4
|
6 |
+
Stable tag: 2.11.0
|
7 |
|
8 |
Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
|
9 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.11.0 =
|
55 |
+
* Blacklisted usernames can't be registered anymore.
|
56 |
+
|
57 |
= 2.10.1 =
|
58 |
* Fixed: GDPR compliance option could not be selected on the multisite installations.
|
59 |
|