diff --git a/core/um-actions-account.php b/core/um-actions-account.php index 4739aadd..2cdbe214 100644 --- a/core/um-actions-account.php +++ b/core/um-actions-account.php @@ -11,8 +11,12 @@ if ( $_POST['user_password'] && $_POST['confirm_user_password'] ) { $changes['user_pass'] = $_POST['user_password']; + add_filter('send_password_change_email','um_send_password_change_email'); - + + wp_set_password( $changes['user_pass'], um_user('ID') ); + + wp_signon( array('user_login' => um_user('user_login'), 'user_password' => $changes['user_pass']) ); } $arr_fields = array();