FAQ
Will Hawes wrote:
...
Isn't this just a case of adding a create_limited() method to your
model class?

package MyApp::Schema::UsedPassword;
...
sub create_limited {
my( $self, $user, $password ) = @_;
# password checking logic here
}

In your controller:

$c->model('DBIC::UsedPassword')->create_limited( ... );
Well, that was my first thought, but I get the following error if I try
to do that...

Can't locate object method "create_limited" via package
"DBIx::Class::ResultSet

Regards
Ian

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 17 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedSep 13, '07 at 10:27a
activeSep 14, '07 at 1:35p
posts17
users6
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase