From 95cec214712477f84114f34a3e9386f1aeb6e975 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 14 Sep 2016 19:56:00 +0800 Subject: [PATCH] Fix reset password process --- core/um-actions-password.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/um-actions-password.php b/core/um-actions-password.php index 6e131ba2..11b6502f 100644 --- a/core/um-actions-password.php +++ b/core/um-actions-password.php @@ -7,7 +7,13 @@ function um_reset_password_process_hook( $args ) { global $ultimatemember; - $user = $_POST['username_b']; + $user = null; + + foreach ( $_POST as $key => $val ) { + if( strstr( $key, "username_b") ){ + $user = trim( $val ); + } + } if ( !is_email( $user ) ) { $data = get_user_by( 'login', $user );