]> iEval git - plack-middleware-auth-complex.git/blobdiff - lib/Plack/Middleware/Auth/Complex.pm
Fix POD bug
[plack-middleware-auth-complex.git] / lib / Plack / Middleware / Auth / Complex.pm
index f69bbe6aa6e1b91ba570d9bc37da6836304d7fdb..f30f412f4cc01cf5f29f7351ad05e7e5a9694555 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',
@@ -131,7 +131,7 @@ sub send_reset_email {
                header => [
                        From    => $self->{mail_from},
                        To      => $user->{email},
-                       Subject => $user->{mail_subject},
+                       Subject => $self->{mail_subject},
                ],
                body => $self->mail_body($username, $token),
        ));
@@ -277,7 +277,7 @@ allows user registration, password changing and password reset.
 
 AuthComplex sets REMOTE_USER if the request includes correct basic
 authentication and intercepts POST requests to some configurable URLs.
-It also sets C<$env->{authcomplex}> to itself before passing the
+It also sets C<< $env->{authcomplex} >> to itself before passing the
 request.
 
 Some options can be controlled by passing a hashref to the
@@ -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.022353 seconds and 4 git commands to generate.