diff --git a/system/hooks.php b/system/hooks.php index 1ba83c55..1aa33283 100644 --- a/system/hooks.php +++ b/system/hooks.php @@ -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); diff --git a/system/pages/account/change_password.php b/system/pages/account/change_password.php index 9b8c3e8a..98f7a48f 100644 --- a/system/pages/account/change_password.php +++ b/system/pages/account/change_password.php @@ -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