- Timestamp:
- 12/28/12 15:05:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Root.pm
r1148 r1207 25 25 sub auth_required : Private { 26 26 my ( $self, $c ) = @_; 27 $c->res->status(401); 28 $c->res->content_type('text/plain'); 29 $c->res->body('Authorization required.'); 30 $c->res->headers->push_header( 31 'WWW-Authenticate' => 'Basic realm="Link::Accounts"' 32 ); 27 $c->forward('login'); 33 28 } 34 29 … … 47 42 } else { 48 43 # No need to login for About section 49 if (!$c->authenticate({}, 'la')) { 44 if (!$c->authenticate({ username => $c->req->param('login'), password => 45 $c->req->param('password') }, 'la')) { 50 46 $c->forward('auth_required'); 51 47 return;
Note: See TracChangeset
for help on using the changeset viewer.