mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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_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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user