Tighten up session time for mods/admins

This commit is contained in:
swagg boi 2023-06-02 16:51:42 -04:00
parent 901d1ddb7a
commit cc14be0022

View file

@ -104,6 +104,8 @@ sub startup($self) {
# Begin routing
my $r = $self->routes->under(sub ($c) {
$c->session(expires => time + 31536000);
$c->session(expires => time + 3600) if $c->is_mod;
$c->session(expires => time + 1800) if $c->is_admin;
$c->session(author => 'Anonymous') unless $c->session('author');