Commit ad6b42e9 authored by Yadd's avatar Yadd

Propage portal logout to handler (#595)

parent 13514267
......@@ -610,6 +610,7 @@ sub abort {
# Delete current user from local cache entry.
sub localUnlog {
my ( $class, $id ) = @_;
$class->lmLog('Local handler logout','debug');
if ( $id //= $class->fetchId ) {
# Delete thread datas
......@@ -629,9 +630,9 @@ sub localUnlog {
## @rmethod protected int unlog()
# Call localUnlog() then goToPortal() to unlog the current user.
# @return Constant value returned by goToPortal()
sub unlog ($$) {
sub unlog {
my $class = shift;
$class->localUnlog;
$class->localUnlog(@_);
$class->updateStatus('LOGOUT');
return $class->goToPortal( '/', 'logout=1' );
}
......
......@@ -444,6 +444,7 @@ sub _deleteSession {
) unless ($preserveCookie);
}
HANDLER->unlog($session->id);
$session->remove;
# Create an obsolete cookie to remove it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment