- fixed reset password limit flushing

This commit is contained in:
nikitasinelnikov
2019-02-07 15:42:12 +02:00
parent 00af31c75a
commit f1104fd9fd
4 changed files with 27 additions and 23 deletions
+1
View File
@@ -177,6 +177,7 @@ add_action( 'um_on_login_before_redirect', 'um_store_lastlogin_timestamp', 10, 1
function um_store_lastlogin_timestamp_( $login ) {
$user = get_user_by( 'login', $login );
um_store_lastlogin_timestamp( $user->ID );
delete_user_meta( $user->ID, 'password_rst_attempts' );
}
add_action( 'wp_login', 'um_store_lastlogin_timestamp_' );