summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-10 19:44:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-10 19:44:51 +0100
commit1c074c2b9a5960fee6d3e637edaff12f858e0eed (patch)
treee3135fb2c3d99c530800b33d07e1c9bd6ceccf78 /index.pl
parent558585895f581c28289ce561a5453c2d13bd61e9 (diff)
secure session cookies
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 52ec80f..93ce538 100755
--- a/index.pl
+++ b/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(