New hook: HOOK_ACCOUNT_CHANGE_PASSWORD_POST

This commit is contained in:
slawkens 2023-02-16 11:24:00 +01:00
parent a43742c8b1
commit 523f9dd95a
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ define('HOOK_CHARACTERS_AFTER_CHARACTERS', ++$i);
define('HOOK_LOGIN', ++$i);
define('HOOK_LOGIN_ATTEMPT', ++$i);
define('HOOK_LOGOUT', ++$i);
define('HOOK_ACCOUNT_CHANGE_PASSWORD_POST', ++$i);
define('HOOK_ACCOUNT_CREATE_BEFORE_FORM', ++$i);
define('HOOK_ACCOUNT_CREATE_BEFORE_BOXES', ++$i);
define('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_1', ++$i);

View File

@ -43,6 +43,8 @@ else
if($old_password != $account_logged->getPassword()) {
$errors[] = "Current password is incorrect!";
}
$hooks->trigger(HOOK_ACCOUNT_CHANGE_PASSWORD_POST);
}
if(!empty($errors)){
//show errors