[Catalyst] Problem with authentication

Renee Bäcker mailinglisten at renee-baecker.de
Wed Apr 22 13:53:49 GMT 2009


Renee Bäcker schrieb:
> Tomas Doran schrieb:
>> Ben Vinnerd wrote:
>>> Should...
>>>
>>> user_class: DB::grips_user
>>>
>>> ...be....
>>>
>>> user_model: DB::grips_user
>> Good call!
> 
> Great. It doesn't work, but I'm one step further. Thanks!
> Now the session is created.

Why do I have to specify a "current_model"
(GriPS::Model::DB::grips_user) in the login sub?

I have specified a "default_model" (GriPS::Model::DB) in my config.

And why does $c->user return an object of class GriPS::Model::DB::roles?
I would expect that it returns an object of the user model.

> 
>> Cheers
>> t0m

- Renée

> 
> - Renée
> 
>> _______________________________________________
>> List: Catalyst at lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>
>>
> 
> 


-- 

Perl-Magazin: http://perl-magazin.de
Perl-Nachrichten: http://perl-nachrichten.de



More information about the Catalyst mailing list