mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix reset password process
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user