set cookie lifetime to 6 months

This commit is contained in:
Daniel Friesel 2019-03-03 21:45:55 +01:00
parent c6532906df
commit ad585c3fec

View file

@ -818,6 +818,9 @@ post '/x/login' => sub {
my $user = $self->req->param('user'); my $user = $self->req->param('user');
my $password = $self->req->param('password'); my $password = $self->req->param('password');
# Keep cookies for 6 months
$self->session( expiration => 60 * 60 * 24 * 180 );
if ( $self->validation->csrf_protect->has_error('csrf_token') ) { if ( $self->validation->csrf_protect->has_error('csrf_token') ) {
$self->render( $self->render(
'login', 'login',