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
+15 -1
View File
@@ -348,7 +348,21 @@ if ( ! class_exists( 'um\core\Account' ) ) {
if ( um_submitting_account_page() ) {
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'] );
}
if ( isset( $_POST['current_user_password'] ) ) {
$formdata['current_user_password'] = trim( $_POST['current_user_password'] );
}
if ( isset( $_POST['single_user_password'] ) ) {
$formdata['single_user_password'] = trim( $_POST['single_user_password'] );
}
UM()->form()->post_form = $formdata;
/**
* UM hook