From: Kieren Diment Date: Tue, 29 Apr 2008 06:26:18 +0000 (+0000) Subject: r12988@zaphod: kd | 2008-04-29 16:12:24 +1000 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=99235d31591677a9350e3e868ca7448cc885b662;p=catagits%2FCatalyst-Plugin-Authentication.git r12988@zaphod: kd | 2008-04-29 16:12:24 +1000 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 } ) ) {