Login Security Solution - Version 0.16.0

Version Description

  • Have shell script gracefully handle value already being the desired value.
Download this release

Release Info

Developer convissor
Plugin Icon wp plugin Login Security Solution
Version 0.16.0
Comparing to
See all releases

Code changes from version 0.15.0 to 0.16.0

login-security-solution.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Requires very strong passwords, repels brute force login attacks, prevents login information disclosures, expires idle sessions, notifies admins of attacks and breaches, permits administrators to disable logins for maintenance or emergency reasons and reset all passwords.
7
  *
8
  * Plugin URI: http://wordpress.org/extend/plugins/login-security-solution/
9
- * Version: 0.15.0
10
  * Author: Daniel Convissor
11
  * Author URI: http://www.analysisandsolutions.com/
12
  * License: GPLv2
6
  * Description: Requires very strong passwords, repels brute force login attacks, prevents login information disclosures, expires idle sessions, notifies admins of attacks and breaches, permits administrators to disable logins for maintenance or emergency reasons and reset all passwords.
7
  *
8
  * Plugin URI: http://wordpress.org/extend/plugins/login-security-solution/
9
+ * Version: 0.16.0
10
  * Author: Daniel Convissor
11
  * Author URI: http://www.analysisandsolutions.com/
12
  * License: GPLv2
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Login Security Solution ===
2
  Contributors: convissor
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danielc%40analysisandsolutions%2ecom&lc=US&item_name=Donate%3a%20Login%20Security%20Solution&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
- Tags: login, password, passwords, strength, strong, idle, timeout, maintenance, security, attack, hack, lock, ban
5
  Requires at least: 3.3
6
  Tested up to: 3.4.1
7
- Stable tag: 0.15.0
8
 
9
  Security against brute force attacks by tracking IP, name, password; requiring very strong passwords. Idle timeout. Maintenance mode. Multisite ready!
10
 
@@ -275,6 +275,9 @@ then `cd` into that directory and run:
275
 
276
  == Changelog ==
277
 
 
 
 
278
  = 0.15.0 =
279
  * Log auth cookie failures too.
280
  * Clean up sleep logic. (Bug #1549, deanmarktaylor)
1
  === Login Security Solution ===
2
  Contributors: convissor
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danielc%40analysisandsolutions%2ecom&lc=US&item_name=Donate%3a%20Login%20Security%20Solution&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
+ Tags: login, password, passwords, strength, strong, strong passwords, password strength, idle, timeout, maintenance, security, attack, hack, lock, ban, brute force, brute, force, authentication, auth, cookie, users
5
  Requires at least: 3.3
6
  Tested up to: 3.4.1
7
+ Stable tag: 0.16.0
8
 
9
  Security against brute force attacks by tracking IP, name, password; requiring very strong passwords. Idle timeout. Maintenance mode. Multisite ready!
10
 
275
 
276
  == Changelog ==
277
 
278
+ = 0.16.0 =
279
+ * Have shell script gracefully handle value already being the desired value.
280
+
281
  = 0.15.0 =
282
  * Log auth cookie failures too.
283
  * Clean up sleep logic. (Bug #1549, deanmarktaylor)
utilities/disable_logins_setter.php CHANGED
@@ -14,6 +14,10 @@
14
  $option_name = 'login-security-solution-options';
15
 
16
 
 
 
 
 
17
  function usage() {
18
  echo "Usage: disable_logins_setter.php <input>\n";
19
  echo " @param int input 1 = disable logins, 0 = enable logins\n";
@@ -44,8 +48,14 @@ $root_dir = "$util_dir/../../../..";
44
  require_once "$root_dir/wp-load.php";
45
 
46
  $option_value = get_option($option_name);
 
 
 
 
 
 
47
  $option_value['disable_logins'] = $input;
48
  if (!update_option($option_name, $option_value)) {
49
- echo "ERROR: updating the option had a problem.\n";
50
  exit(1);
51
  }
14
  $option_name = 'login-security-solution-options';
15
 
16
 
17
+ /**
18
+ * Displays help information to CLI users
19
+ * @return string the information
20
+ */
21
  function usage() {
22
  echo "Usage: disable_logins_setter.php <input>\n";
23
  echo " @param int input 1 = disable logins, 0 = enable logins\n";
48
  require_once "$root_dir/wp-load.php";
49
 
50
  $option_value = get_option($option_name);
51
+
52
+ if ($option_value['disable_logins'] === $input) {
53
+ echo "NOTICE: disable_logins = '$input' already. No action needed.\n";
54
+ exit;
55
+ }
56
+
57
  $option_value['disable_logins'] = $input;
58
  if (!update_option($option_name, $option_value)) {
59
+ echo "ERROR: updating the 'disable_logins' option had a problem.\n";
60
  exit(1);
61
  }