Frontend: Add logout_action

This commit is contained in:
2023-09-09 10:58:26 +02:00
parent 1e7bea8e5f
commit eaea93fb9e
2 changed files with 15 additions and 0 deletions

View File

@@ -27,6 +27,14 @@ sub newSessionToken {
return Digest::SHA::sha256_hex(sprintf("%x", rand(0xFFFFFFFF)));
}
sub deleteSession {
my $aSession = $_[0];
if(isValidSession($aSession)) {
delete $sessions{$aSession};
}
}
sub isValidSession {
my $aSession = $_[0];