New User Approve - Version 1.3.2

Version Description

  • fix bug with allowing wrong passwords
Download this release

Release Info

Developer picklewagon
Plugin Icon 128x128 New User Approve
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

Files changed (2) hide show
  1. new-user-approve.php +7 -2
  2. readme.txt +7 -1
new-user-approve.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
- Version: 1.3.1
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
@@ -24,7 +24,6 @@
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
27
-
28
  if (!class_exists('pw_new_user_approve')) {
29
  class pw_new_user_approve {
30
  /**
@@ -438,6 +437,12 @@ class pw_new_user_approve {
438
  }
439
 
440
  $user = get_user_by( 'login', $username );
 
 
 
 
 
 
441
  $status = get_user_meta( $user->ID, 'pw_user_status', true );
442
 
443
  if ( empty( $status ) ) {
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
+ Version: 1.3.2
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
 
 
27
  if (!class_exists('pw_new_user_approve')) {
28
  class pw_new_user_approve {
29
  /**
437
  }
438
 
439
  $user = get_user_by( 'login', $username );
440
+
441
+ $result = wp_check_password( $password, $user->user_pass, $user->ID );
442
+ if ( !$result ) {
443
+ return;
444
+ }
445
+
446
  $status = get_user_meta( $user->ID, 'pw_user_status', true );
447
 
448
  if ( empty( $status ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
4
  Tags: users, registration
5
  Requires at least: 3.1
6
  Tested up to: 3.3.2
7
- Stable tag: 1.3.1
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
@@ -52,6 +52,9 @@ your liking.
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 1.3.1 =
56
  * add czech, catalan, romanian translations
57
  * fix formatting issues in readme.txt
@@ -128,6 +131,9 @@ This version fixes some issues when authenticating users. Requires at least Word
128
  = 1.3.1 =
129
  Download version 1.3.1 immediately! A bug was found in version 1.3 that allows a user to login without using password.
130
 
 
 
 
131
  == Other Notes ==
132
 
133
  = Translations =
4
  Tags: users, registration
5
  Requires at least: 3.1
6
  Tested up to: 3.3.2
7
+ Stable tag: 1.3.2
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
52
 
53
  == Changelog ==
54
 
55
+ = 1.3.2 =
56
+ * fix bug with allowing wrong passwords
57
+
58
  = 1.3.1 =
59
  * add czech, catalan, romanian translations
60
  * fix formatting issues in readme.txt
131
  = 1.3.1 =
132
  Download version 1.3.1 immediately! A bug was found in version 1.3 that allows a user to login without using password.
133
 
134
+ = 1.3.2 =
135
+ Download version 1.3.2 immediately! A bug was found in version 1.3 that allows a user to login using any password.
136
+
137
  == Other Notes ==
138
 
139
  = Translations =