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:
commit
762d8129a4
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue