From: Kieren Diment Date: Tue, 29 Apr 2008 06:26:18 +0000 (+0000) Subject: a couple of documentation fixes X-Git-Tag: v0.10009_01~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e143b0609e821c985777d1bcc9128e554e06dbd;p=catagits%2FCatalyst-Plugin-Authentication.git a couple of documentation fixes --- diff --git a/lib/Catalyst/Plugin/Authentication.pm b/lib/Catalyst/Plugin/Authentication.pm index 8210020..f63b753 100644 --- a/lib/Catalyst/Plugin/Authentication.pm +++ b/lib/Catalyst/Plugin/Authentication.pm @@ -624,7 +624,7 @@ This means that our application will begin like this: }, store => { class => 'Minimal', - users = { + users => { bob => { password => "s00p3r", editor => 'yes', @@ -652,8 +652,8 @@ To show an example of this, let's create an authentication controller: sub login : Local { my ( $self, $c ) = @_; - if ( my $user = $c->req->param("user") - and my $password = $c->req->param("password") ) + if ( my $user = $c->req->params->{user} + and my $password = $c->req->params->{password"} ) { if ( $c->authenticate( { username => $user, password => $password } ) ) {