[horde] Preauthenticate Hook - problems with retrieving $userId
Jan Schneider
jan at horde.org
Mon Dec 2 11:18:52 UTC 2013
Zitat von Florian Schmidt <florian.schmidt787 at googlemail.com>:
> Hi all,
>
>
> I want to use the preauthenticate hook in order to allow only certain users
> to login. Thus, my approach is (like in the examples) to use the $userId
> and return true or false in the preauthenticate hook depending on the
> $userId.
> But my problem is, that the $userId is not set.
> if I dump all variables in php with var_dump(get_defined_vars()) within the
> preauthenticate hook, I get the following:
> array(2) { ["userId"]=> bool(false) ["credentials"]=> array(1) {
> ["authMethod"]=> string(11) "transparent" } }
>
> In general horde is working fine.
>
> Any idea what I am doing wrong?
>
> Best regards
> Flo
The user id is only set *at login*, not when loading the login form.
--
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject
More information about the horde
mailing list