]> iEval git - gruntmaster-page.git/commitdiff
Actually use AUTH_TIMEOUT
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 20:37:53 +0000 (22:37 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 20:37:53 +0000 (22:37 +0200)
app.psgi

index 2fcdc0058c1dd19781455ba4fcceca5ce0b8860c..3d4fe5205325d9d5f984d3ca8237bbe8bd6dfeb2 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -15,9 +15,9 @@ use constant AUTH_TIMEOUT => 5 * 60;
 use constant ACCESSLOG_FORMAT => '%{X-Forwarded-For}i|%h %u "%r" %>s %b "%{Referer}i" "%{User-agent}i"';
 use constant CONTENT_SECURITY_POLICY => q,default-src 'none'; script-src 'self' www.google-analytics.com; style-src 'self'; img-src 'self'; connect-src 'self'; frame-src free.timeanddate.com,;
 
-my $db = Gruntmaster::Data->connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');
+my $db = Gruntmaster::Data->connect($ENV{GRUNTMASTER_DSN} //dbi:Pg:');
 
-tie my %auth, 'Tie::Hash::Expire', {expire_seconds => 300};
+tie my %auth, 'Tie::Hash::Expire', {expire_seconds => AUTH_TIMEOUT};
 
 sub authenticate {
        my ($user, $pass, $env) = @_;
This page took 0.030135 seconds and 4 git commands to generate.