mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
add hook for disable accounts edit for next.my-aac.org (security)
This commit is contained in:
parent
905cce7021
commit
c49e4fd63d
@ -150,7 +150,7 @@ else if (isset($_REQUEST['search'])) {
|
||||
$web_lastlogin = strtotime($_POST['web_lastlogin']);
|
||||
verify_number($web_lastlogin, 'Web Last login', 11);
|
||||
|
||||
if (!$error) {
|
||||
if (!$error && $hooks->trigger(HOOK_ADMIN_ACCOUNTS_POST, ['account_id' => $account->getId(), 'account_email' => $account->getEMail()])) {
|
||||
if (USE_ACCOUNT_NAME) {
|
||||
$account->setName($name);
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ define('HOOK_ADMIN_MENU', ++$i);
|
||||
define('HOOK_ADMIN_LOGIN_AFTER_ACCOUNT', ++$i);
|
||||
define('HOOK_ADMIN_LOGIN_AFTER_PASSWORD', ++$i);
|
||||
define('HOOK_ADMIN_LOGIN_AFTER_SIGN_IN', ++$i);
|
||||
define('HOOK_ADMIN_ACCOUNTS_POST', ++$i);
|
||||
define('HOOK_EMAIL_CONFIRMED', ++$i);
|
||||
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user