mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Task CU-86cxwy7ww
- password sanitize has been changed to the standard WordPress one.
This commit is contained in:
@@ -337,7 +337,16 @@ if ( ! class_exists( 'um\core\Password' ) ) {
|
||||
}
|
||||
|
||||
if ( $this->is_change_request() ) {
|
||||
UM()->form()->post_form = wp_unslash( $_POST );
|
||||
|
||||
$formdata = wp_unslash( $_POST );
|
||||
if ( isset( $_POST['user_password'] ) ) {
|
||||
$formdata['user_password'] = trim( $_POST['user_password'] );
|
||||
}
|
||||
if ( isset( $_POST['confirm_user_password'] ) ) {
|
||||
$formdata['confirm_user_password'] = trim( $_POST['confirm_user_password'] );
|
||||
}
|
||||
|
||||
UM()->form()->post_form = $formdata;
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
|
||||
Reference in New Issue
Block a user