I have tried doing
if ($c->authenticate( { username => $username,
password => $password })) {
# if ($c->login($username, $password)) {
(ie using authenticat instead on login) but then I get
Use of uninitialized value in string eq at
/usr/lib/perl5/site_perl/5.8.8/Catalyst/Authentication/Credential/Password.pm
line 84.
I'm not sure at all how that happens.
Jason: Catalyst::Plugin::Authentication::Credential::Password says it is a
compatibility shim for old code (see
http://search.cpan.org/~jayk/Catalyst-Plugin-Authentication-0.10003/lib/Catalyst/Plugin/Authentication/Credential/Password.pm);
then it refers us to Catalyst::Authentication::Credential::Password which
advises using authenticate.
But anyway authenticate does not appear to do all the login, as I thought
login was also suppose to register the user with the session (and what
else?)
So I am still not sure how to proceed.
On 04/12/2007, Jason Kohles <[EMAIL PROTECTED]> wrote:
>
> On Dec 4, 2007, at 8:40 AM, Martin Ellison wrote:
>
> I am getting this message
> [error] Caught exception in myapp::Controller::User->loginuser "Can't
> locate object method "login" via package "myapp" at ...Controller/User.pm
> line 41."
>
> My application class loads the following plugins: -Debug ConfigLoader
> Static::Simple StackTrace Session Session::State Session::Store
> Session::Store::File Session::State::Cookie Authentication
> Authentication::Store::DBIC Authorization::Roles.
>
> I thought I had everything set up according to the tutorial.
>
> Does anyone know what I should be doing? I thought one of these plugins
> would provide the 'login' method for me.
>
>
> You need a credential plugin, probably
> Catalyst::Plugin::Authentication::Credential::Password.
>
> --
> Jason Kohles, RHCA RHCDS RHCE
> [EMAIL PROTECTED] - http://www.jasonkohles.com/
> "A witty saying proves nothing." -- Voltaire
>
>
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[EMAIL PROTECTED]/
> Dev site: http://dev.catalyst.perl.org/
>
>
--
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.org
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/