Added enterprise hook on excludedPassword funcion in open
This commit is contained in:
parent
b537fd042c
commit
ef7ea84beb
|
@ -442,7 +442,7 @@ if ($create_user) {
|
||||||
$password_new = '';
|
$password_new = '';
|
||||||
$password_confirm = '';
|
$password_confirm = '';
|
||||||
$new_user = true;
|
$new_user = true;
|
||||||
} else if (enterprise_hook('excludedPassword', $password_new) === true) {
|
} else if (enterprise_hook('excludedPassword', [$password_new]) === true) {
|
||||||
$is_err = true;
|
$is_err = true;
|
||||||
ui_print_error_message(__('The password provided is not valid. Please set another one.'));
|
ui_print_error_message(__('The password provided is not valid. Please set another one.'));
|
||||||
$user_info = $values;
|
$user_info = $values;
|
||||||
|
|
|
@ -759,7 +759,7 @@ function update_user_password(string $user, string $password_new)
|
||||||
{
|
{
|
||||||
global $config;
|
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.');
|
$config['auth_error'] = __('The password provided is not valid. Please, set another one.');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue