Added enterprise hook on excludedPassword funcion in open

This commit is contained in:
Calvo 2022-11-16 13:26:25 +01:00
parent b537fd042c
commit ef7ea84beb
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}