Caught exception in tutorial::Controller::Users->logon "Can't locate object method "login" via package "tutorial" at /home/bric1/tutorial/script/../lib/tutorial/Controller/Users.pm line 24."
####
use Catalyst qw/-Debug Static::Simple Authentication
Authentication::Store::Minimal
Authentication::Credential::Password/;
####
sub 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;
}
}