diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-03 21:45:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-03 21:45:55 +0100 |
commit | ad585c3fec9c937f41b60f484aee6aa5fd65c573 (patch) | |
tree | d66430cc143679fc5f8bdcee46c13046c067a807 | |
parent | c6532906df51acb736509e399a24bb32fb536c45 (diff) |
set cookie lifetime to 6 months
-rwxr-xr-x | index.pl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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', |