Task CU-86cxwy7ww

- password sanitize has been changed to the standard WordPress one.
This commit is contained in:
yuriinalivaiko
2025-02-04 23:13:49 +02:00
parent 26c8aa21e1
commit 17d95a189b
3 changed files with 37 additions and 3 deletions
+10 -1
View File
@@ -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