mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- code review;
This commit is contained in:
@@ -623,7 +623,10 @@ if ( ! class_exists( 'um\core\Password' ) ) {
|
||||
UM()->user()->password_changed();
|
||||
|
||||
// clear temporary data
|
||||
update_user_meta( $user->ID, 'password_rst_attempts', 0 );
|
||||
$attempts = (int) get_user_meta( $user->ID, 'password_rst_attempts', true );
|
||||
if ( $attempts ) {
|
||||
update_user_meta( $user->ID, 'password_rst_attempts', 0 );
|
||||
}
|
||||
$this->setcookie( $rp_cookie, false );
|
||||
|
||||
// logout
|
||||
|
||||
Reference in New Issue
Block a user