i,
I have been trying to set up the catalyst Authorization plugin I have my
Model in a module called DietDB and in my application module I have the
Authorization set up as:
authentication => {
default_realm => 'people',
realms => {
people => {
credential => {
class => 'Person',
password_field => 'person_password',
password_type => 'clear'
},
store => {
class => 'DBIx::Class',
user_model => 'DietDB',
role_relation => 'role',
role_field => 'role_name',
}
}
}
},
When my login controller calls $c->authenticate({username => $username,
password => $password}) I get the error message:
Caught exception in Diet::Controller::Login->index
"$c->model('DB::Users') did not return a resultset. Did you set
user_model correctly? at
/usr/local/share/perl/5.10.0/Catalyst/Authentication/Store/DBIx/Class.pm
line 61"
Have I missed a configuration option? I am using Catalyst 5.80003 and other
code is successfully calling $c->model('DietDB').
Thanks,
Ivan
--
email/jabber: [email protected]
/
/ _ _
/ \ / | | | |
/ \/ \_| | |
_______________________________________________
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/