[horde] Hacking passwd to work in H4

Jan Schneider jan at horde.org
Wed Jul 27 09:52:35 UTC 2011


Zitat von Stephan Kleber <stephan at admin.nabira.de>:

> Hi Jan,
>
> thanks, but you did not read what I wrote.
>
>> You must not throw the exception there. You need to pass it to
>> authenticateFailure().
>
> I did NOT throw the Exception, I passed it as you proposed before:
>
> $registry->clearAuth(true);
> $registry->authenticateFailure('horde', new Horde_Auth_Exception(
>   'Ihr Passwort wurde erfolgreich geändert. '
>   . 'Bitte melden Sie sich neu an.',
>   Horde_Auth::REASON_MESSAGE) );
>
> However the Exception get's thrown anyway. After clicking "Change
> Password" I get displayed the following page (as Admin):

Looking at the code, it seems like you need to use the  
Horde_Auth::PERMISSION_DENIED code instead. Don't ask me why.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list