From ef7ea84bebfdea6807fda422bb4004b14d2c6a2c Mon Sep 17 00:00:00 2001 From: Calvo Date: Wed, 16 Nov 2022 13:26:25 +0100 Subject: [PATCH] Added enterprise hook on excludedPassword funcion in open --- pandora_console/godmode/users/configure_user.php | 2 +- pandora_console/include/auth/mysql.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 4f8c02d0f4..1d913e9385 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 (enterprise_hook('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 9980807759..5d5cc88478 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 (enterprise_hook('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; }