i,<br><br>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:<br><br> authentication => {<br> default_realm => 'people',<br>
realms => {<br> people => {<br> credential => {<br> class => 'Person',<br> password_field => 'person_password',<br> password_type => 'clear'<br>
},<br> store => {<br> class => 'DBIx::Class',<br> user_model => 'DietDB',<br> role_relation => 'role',<br>
role_field => 'role_name',<br> }<br> }<br> }<br> },<br><br clear="all">When my login controller calls $c->authenticate({username => $username, password => $password}) I get the error message:<br>
<br><pre><code class="error">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"</code></pre>
Have I missed a configuration option? I am using Catalyst 5.80003 and other code is successfully calling $c->model('DietDB').<br><br>Thanks,<br>Ivan<br><br>-- <br>email/jabber: <a href="mailto:ivan.wills@gmail.com">ivan.wills@gmail.com</a><br>
/<br> / _ _<br> / \ / | | | |<br>/ \/ \_| | |<br><br>