[Plugin: User Locker] Bad attempts are not reset after valid login
-
A very nice plugin, but it has a ‘logic’ bug.
The bad attempts counter per user is not reset after a valid login or after a password-reset.
The relevant function $this->unlock_user() is called in both cases:
// Unlock account for given user function unlock_user( $user_id, $reason = false ) { $old_status = $this->is_user_locked( $user_id ); // Update status if ( $old_status ) { update_user_option( $user_id, 'ul_bad_attempts', 0, false ); update_user_option( $user_id, 'ul_locked', false, false ); }
Current situation: The field ‘ul_bad_attempts’ is only reset if the account was locked before ($old_status == TRUE).
Expected situation: The field ‘ul_bad_attempts’ should be also reset after a valid login with the account not (yet) locked.
Thanks for a fix.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: User Locker] Bad attempts are not reset after valid login’ is closed to new replies.