Merge branch 'ent-9828-error-500-al-crear-usuario-en-open' into 'develop'

Added enterprise hook on excludedPassword funcion in open

See merge request artica/pandorafms!5272
This commit is contained in:
Daniel Rodriguez 2022-11-16 16:03:30 +00:00
commit 762d8129a4
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 (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 (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;
}