Skip to content

Commit

Permalink
Merge pull request #69 from chesio/fix-account-pending-message
Browse files Browse the repository at this point in the history
Fix login error message for users with pending account approval.
  • Loading branch information
Arsenal21 authored Dec 8, 2016
2 parents 58180f4 + 12c7cbc commit e5b14f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion all-in-one-wp-security/classes/wp-security-user-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function post_authenticate($user, $username, $password)
}
if ( $user->get_error_code() === 'account_pending' ) {
// Neither log nor block users attempting to log in before their registration is approved.
return;
return $user;
}
// Login failed for non-trivial reason
$this->increment_failed_logins($username);
Expand Down

0 comments on commit e5b14f7

Please sign in to comment.