mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
secure session cookies
This commit is contained in:
parent
558585895f
commit
1c074c2b9a
1 changed files with 4 additions and 1 deletions
5
index.pl
5
index.pl
|
@ -43,7 +43,6 @@ my @action_types = (qw(checkin checkout undo));
|
|||
app->plugin(
|
||||
authentication => {
|
||||
autoload_user => 1,
|
||||
session_key => 'foodor',
|
||||
fail_render => { template => 'login' },
|
||||
load_user => sub {
|
||||
my ( $self, $uid ) = @_;
|
||||
|
@ -1288,6 +1287,10 @@ get '/s/*station' => sub {
|
|||
}
|
||||
};
|
||||
|
||||
if ( $ENV{TRAVELYNX_SECRETS} ) {
|
||||
app->secrets( [ split( qr{:}, $ENV{TRAVELYNX_SECRETS} ) ] );
|
||||
}
|
||||
|
||||
app->defaults( layout => 'default' );
|
||||
|
||||
app->config(
|
||||
|
|
Loading…
Reference in a new issue