Re: [Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Martin Ellison
ok, I was missing Catalyst::Authentication::Store::DBIx::Class I actually had the database field called user_name with a hyphen... changed it everywhere to username. I'm still getting the same problem. On 05/12/2007, Martin Ellison <[EMAIL PROTECTED]> wrote: > > Jonathan: > my $username =

Re: [Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Martin Ellison
Jonathan: my $username = $c->request->params->{username} || ""; my $password = $c->request->params->{password} || ""; These had non-empty values (verified from the trace). On 05/12/2007, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > > > On Wed, 2007-12-05 at 01:31 +0800, Martin Elli

Re: [Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Jonathan Rockway
On Wed, 2007-12-05 at 01:31 +0800, Martin Ellison wrote: > I have tried doing > > if ($c->authenticate( { username => $username, > password => $password })) { ># if ($c->login($username, $password)) { > (ie using authenticate instead on log

Re: [Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Martin Ellison
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/p

Re: [Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Jason Kohles
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 C

[Catalyst] Newbie question - $c->login is missing

2007-12-04 Thread Martin Ellison
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