Commit 1c074c2b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

secure session cookies

parent 55858589
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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(