Fix logout hook & add images/editor to .gitignore

This commit is contained in:
slawkens 2023-02-02 20:54:47 +01:00
parent f9d85b10b7
commit 80d3f5ffe8
2 changed files with 5 additions and 5 deletions

8
.gitignore vendored
View File

@ -24,6 +24,10 @@ templates/*
images/guilds/*
!images/guilds/default.gif
# editor images
images/editor/*
!images/editor/index.html
# cache
system/cache/*
!system/cache/index.html
@ -51,9 +55,5 @@ plugins/*
!plugins/account-create-hint
landing
# user data
user/*
!user/index.html
# others/rest
system/pages/downloads.php

View File

@ -35,7 +35,7 @@ if($current_session !== false)
if(ACTION === 'logout' && !isset($_REQUEST['account_login'])) {
if(isset($account_logged) && $account_logged->isLoaded()) {
if($hooks->trigger(HOOK_LOGOUT, array('account' => $account_logged, 'password' => getSession('password')))) {
if($hooks->trigger(HOOK_LOGOUT,['account_id' => $account_logged->getId()])) {
unsetSession('account');
unsetSession('password');
unsetSession('remember_me');