mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
set cookie lifetime to 6 months
This commit is contained in:
parent
c6532906df
commit
ad585c3fec
1 changed files with 3 additions and 0 deletions
3
index.pl
3
index.pl
|
@ -818,6 +818,9 @@ post '/x/login' => sub {
|
|||
my $user = $self->req->param('user');
|
||||
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') ) {
|
||||
$self->render(
|
||||
'login',
|
||||
|
|
Loading…
Reference in a new issue