Reduce default reset token validity to 1 hour
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 1 Mar 2015 12:07:00 +0000 (14:07 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 1 Mar 2015 12:07:00 +0000 (14:07 +0200)
lib/Plack/Middleware/Auth/Complex.pm

index 4efd0ecb48f1588d219e13fff4ea38338d40e41b..e272f18b431e57099cd5934550113c812d07579a 100644 (file)
@@ -29,7 +29,7 @@ sub default_opts {(
        realm             => 'restricted area',
        cache_fail        => 0,
        cache_max_age     => 5 * 60,
-       token_max_age     => 60 * 60 * 24,
+       token_max_age     => 60 * 60,
        username_regex    => qr/^\w{2,20}$/a,
        register_url      => '/action/register',
        passwd_url        => '/action/passwd',
@@ -379,7 +379,7 @@ to 5 minutes.
 
 =item token_max_age
 
-Password reset token validity, in seconds. Defaults to 24 hours.
+Password reset token validity, in seconds. Defaults to 1 hour.
 
 =item username_regex
 
This page took 0.011587 seconds and 4 git commands to generate.