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

@@ -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