ColtsFoot has asked for the wisdom of the Perl Monks concerning the following question:
I am following Marcus Ramberg's Catalyst Tutorial on CPAN
and get the following error when implementing the login action
I would be gratefil for any pointers
and get the following error when implementing the login action
I have the following "use" statementsCaught exception in tutorial::Controller::Users->logon "Can't locate o +bject method "login" via package "tutorial" at /home/bric1/tutorial/s +cript/../lib/tutorial/Controller/Users.pm line 24."
My login action code is as followsuse Catalyst qw/-Debug Static::Simple Authentication Authentication::Store::Minimal Authentication::Credential::Password/;
Authentication::Credential::Password does have a "login" methodsub login : Local { my ($self, $c) = @_; $c->stash->{template} = 'userlogin.tt'; if(!$c->login()) { $c->stash->{message} = 'Please login.'; } else { $c->stash->{message} = "Welcome " . $c->user->id; } }
I would be gratefil for any pointers
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with Catalyst Tutorial
by castaway (Parson) on Feb 24, 2006 at 09:14 UTC | |
Re: Problem with Catalyst Tutorial
by ghenry (Vicar) on Feb 24, 2006 at 11:23 UTC |
Back to
Seekers of Perl Wisdom