[horde] Administrator account case insensitive log-in
Jan Schneider
jan at horde.org
Fri Nov 22 19:45:36 UTC 2019
Zitat von Kenren Taisho <toushin.taishi at gmail.com>:
> Hi.
> Is it possible for administrator accounts to log-in case insensitive?
> I do have the following in IMP's hooks.local.php
>
> public function preauthenticate($userId, $credentials)
>> {
>> return array(
>> 'userId' => Horde_String::lower($userId),
>> 'credentials' => $credentials
>> );
>> return true;
>> }
>
>
> and user log-in work regardless of the letter case, however, Administrator
> accounts lose their administrator privileges when logging in on the wrong
> letter case.
>
> Example: If the administrator account is super.user
> super.user <-- Ok
> Super.user <-- Can log in Ok, but no admin privilege.
>
> Thanks and kind regards!
You want to use the username() hook instead to lowercase the user name.
--
Jan Schneider
The Horde Project
https://www.horde.org/
More information about the horde
mailing list