Frontend: Add logout_action
This commit is contained in:
@@ -116,6 +116,13 @@ sub handlePath {
|
||||
$aClient->send($response);
|
||||
return 1;
|
||||
}
|
||||
when("/logout_action") {
|
||||
if(defined($aRequest->{"cookies"}{"session"})) {
|
||||
frontend_session::deleteSession($aRequest->{"cookies"}{"session"});
|
||||
}
|
||||
frontend::redirect($aClient, "/");
|
||||
return 1;
|
||||
}
|
||||
when("/view_logs") {
|
||||
my $channelID = $aRequest->{"path"}{"parameters"}{"channel"};
|
||||
if(!defined($channelID)) {
|
||||
|
||||
Reference in New Issue
Block a user