From d19733bf1500c86f58bfd0414e378564b5be8baf Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 30 Jun 2015 17:22:55 +0200 Subject: [PATCH] No need to limit to 3 keys Just create new when needed, and remove the old ones --- vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vroom.pl b/vroom.pl index 4c3ec89..a790e7b 100755 --- a/vroom.pl +++ b/vroom.pl @@ -168,7 +168,7 @@ helper update_session_keys => sub { }; $sth->execute; my $recent_keys = $sth->fetchrow; - if (scalar @keys < 3 && $recent_keys < 1){ + if ($recent_keys < 1){ $self->app->log->debug("Generating a new key to sign session cookies"); my $new_key = Session::Token->new( alphabet => ['a'..'z', 'A'..'Z', '0'..'9', '.:;,/!%$#~{([-_)]}=+*|'],