diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index d7d4498fb3..4f8c02d0f4 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -442,7 +442,7 @@ if ($create_user) { $password_new = ''; $password_confirm = ''; $new_user = true; - } else if (excludedPassword($password_new) === true) { + } else if (enterprise_hook('excludedPassword', $password_new) === true) { $is_err = true; ui_print_error_message(__('The password provided is not valid. Please set another one.')); $user_info = $values; diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index cbc7ad37a0..9980807759 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -759,7 +759,7 @@ function update_user_password(string $user, string $password_new) { global $config; - if (excludedPassword($password_new) === true) { + if (enterprise_hook('excludedPassword', $password_new) === true) { $config['auth_error'] = __('The password provided is not valid. Please, set another one.'); return false; }