[dev] _horde_hook_preauthenticate called twice?

Chuck Hagenbuch chuck at horde.org
Sun Aug 27 22:21:04 PDT 2006


Quoting Matt Selsky <selsky at columbia.edu>:

> Is there a reason why _horde_hook_preauthenticate is called twice during
> login?  I'm using IMP authentication.  One time is via:
>
> IMP_Session::createSession -> Auth_imp::authenticate ->
> Auth::authenticate -> _horde_hook_preauthenticate
>
> And then via:
>
> IMP::checkAuthentication -> Auth_imp::authenticate -> Auth::authenticate
> -> _horde_hook_preauthenticate
>
> Should we just be caching the results of the first call since
> _horde_hook_preauthenticate can be expensive?

Auth::authenticate shouldn't be called multiple times. Why is that  
part necessary?

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the dev mailing list