[imp] Post-authentication hook is ignored (Horde 5.0.19)
mailing lists
listas.correo at yahoo.es
Thu Jan 17 12:26:56 UTC 2013
Hello Jan,
On 01/17/2013 12:46 PM, Jan Schneider wrote:
> Zitat von mailing lists <listas.correo at yahoo.es>:
[...]
>> Any idea about why the postauth hook is not being executed?
>
> Read the documentation in the header of horde/config/hooks.php.dist.
you must be referring to this:
* postauthenticate
* ----------------
* This hook is used to dynamically alter the login credentials after
* authentication occurs.
*
* Parameters in:
* $userId (string): The Horde ID.
* $credentials (array): The array of credentials used for authentication.
*
* The return value from this hook is as follows:
* [throw Horde_Auth_Exception] - Fatal error.
* false (boolean) - Authentication will fail.
* true (boolean) - Authentication succeeds with no alteration of the
* credentials.
* (array) - Replace the credentials with the given value.
I did various tests and and none of them worked. Something as simple as the following funcion is ignored.
public function postauthenticate($userId, $credentials)
{
return false;
}
(bug report: http://bugs.horde.org/ticket/11389 )
sorry if I'm missing something very simple, but where is the error?
More information about the imp
mailing list