Commit 1c76c713 authored by Xavier Guimard's avatar Xavier Guimard

Remove persistent cookie on lougout (#1131)

parent 126fdb09
......@@ -20,6 +20,8 @@ use constant afterDatas => 'newDevice';
use constant beforeAuth => 'check';
use constant beforeLogout => 'logout';
# INITIALIZATION
has ott => (
......@@ -194,4 +196,16 @@ sub check {
return PE_OK;
}
sub logout {
my ( $self, $req ) = @_;
$req->addCookie(
$self->p->cookie(
name => 'llngconnexion',
value => 0,
expires => 'Wed, 21 Oct 2015 00:00:00 GMT'
)
);
PE_OK;
}
1;
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