1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-24 10:29:12 +02:00

Replace secret with secrets

This commit is contained in:
Daniel Berteaud 2015-01-20 11:17:04 +01:00
parent 897fd7b02f
commit 6fa7a0b5c9

View File

@ -1731,7 +1731,7 @@ get '/:room' => sub {
# use the templates defined in the config
push @{app->renderer->paths}, 'templates/'.$config->{'interface.template'};
# Set the secret used to sign cookies
app->secret($config->{'cookie.secret'});
app->secrets([$config->{'cookie.secret'}]);
app->sessions->secure(1);
app->sessions->cookie_name($config->{'cookie.name'});
app->hook(before_dispatch => sub {