[ic] CookieLogin with indirect_login
Kevin Walsh
kevin at cursor.biz
Wed Mar 7 15:58:57 EST 2007
Bill Carr <bill at worldwideimpact.com> wrote:
> On Mar 6, 2007, at 4:47 PM, Kevin Walsh wrote:
> > Bill Carr <bill at bottlenose-wine.com> wrote:
> > > Is anyone using inderct_login with CookieLogin and is it working?
> > >
> > Not me, but I just spent a couple of minutes looking at the code.
> >
> > The following patch is completely untested, but it may be worth a go:
> >
> > [snip: UserDB.pm patch]
> >
> > You will need to clean out your MV_USERNAME cookie after patching.
> >
> Thanks for the patch Kevin.
>
> It looks like the real username is being set in MV_USERNAME cookie
> even with an indirect_login setup. I propose keeping that behavior
> the way it is and skipping the indirect login query if we got the
> USERNAME from the MV_USERNAME cookie. The following patch
> accomplishes that. What do you think?
>
> [snip: UserDB.pm and Config.pm patch]
>
That's obviously a much bigger patch that will require a lot more testing.
Unfortunately I'm not able to test your patch (nor mine) at the moment,
but I will when I get a chance.
Just out of interest, did my patch work?
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list