mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-10 23:04:30 +02:00
Fix logout hook & add images/editor to .gitignore
This commit is contained in:
parent
f9d85b10b7
commit
80d3f5ffe8
8
.gitignore
vendored
8
.gitignore
vendored
@ -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
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user