[Catalyst] Login problem with Cat5
Michael Reece
mreece at sacbee.com
Tue Apr 19 01:41:47 CEST 2005
Putting 'sub login : Global' and 'sub logout : Global' in MyApp::C::Login,
and calling $c->forward('/login/login') does fix the problem, fwiw.
But I wonder when else this will crop up.. For example, what if a plugin,
for whatever reason, has its own 'sub default'?
On 4/18/05 4:21 PM, "Michael Reece" <mreece at sacbee.com> wrote:
> Can you clarify what you mean here?
>
> http://search.cpan.org/~sri/Catalyst-5.02/lib/Catalyst/Manual/Cookbook.pod#A
> uthentication_with_Catalyst::Plugin::Authentication::CDBI
>
> Doesn't mention this problem ..
>
> Are you saying that I should not define any action subs in MyApp, but always
> put them in a controller, for fear that any action might interfere with any
> method defined in any plugin?
>
> On 4/18/05 4:05 PM, "Sebastian Riedel" <sri at oook.de> wrote:
>
>>
>> Am 19.04.2005 um 00:47 schrieb Michael Reece:
>>> The problem is when C::P::A::CDBI session_login calls
>>> $c->login( $user, $password );
>>> it invokes the sub login on MyApp, rather than the sub login in
>>> C::P::A::CDBI.
>>>
>>> Is there a way around this, short of changing the action to do_login?
>>>
>>
>> Thats why we have controllers...
>>
>> --
>> sebastian
>
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
--
michael reece :: web engineer :: mreece at sacbee.com :: (916)321-1249
More information about the Catalyst
mailing list