
ivan.wills at gmail
May 19, 2009, 3:21 AM
Post #1 of 7
(567 views)
Permalink
|
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: ivan.wills[at]gmail.com / / _ _ / \ / | | | | / \/ \_| | |
|