Frontend: Implement user logging in

This commit is contained in:
2023-09-08 22:05:21 +02:00
parent 0a6e4d1d15
commit 606b13470e
4 changed files with 341 additions and 117 deletions

30
frontend_session.pm Normal file
View File

@@ -0,0 +1,30 @@
# irclogger_web
# Copyright (C) 2023 mrkubax10 <mrkubax10@onet.pl>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package frontend_session;
use strict;
use warnings;
our %sessions;
sub isValidSession {
my $aSession = $_[0];
return defined($sessions{$aSession});
}
1;