New hooks for admin page, for head, body, and before_page

+move LOGIN_POST to correct place
This commit is contained in:
slawkens
2023-02-07 16:27:02 +01:00
parent 1166ddfe87
commit 3a3411c117
5 changed files with 20 additions and 6 deletions

View File

@@ -31,10 +31,6 @@ if(!$logged && isset($_POST['account_login'], $_POST['password_login']))
$t = $tmp[$ip] ?? null;
}
if (!$hooks->trigger(HOOK_ACCOUNT_LOGIN_POST)) {
return;
}
$account_logged = new OTS_Account();
if (config('account_login_by_email')) {
$account_logged->findByEMail($login_account);
@@ -112,4 +108,6 @@ if(!$logged && isset($_POST['account_login'], $_POST['password_login']))
$hooks->trigger(HOOK_LOGIN_ATTEMPT, array('account' => $login_account, 'password' => $login_password, 'remember_me' => $remember_me));
}
$hooks->trigger(HOOK_ACCOUNT_LOGIN_POST);
}