Re: Administrator account case insensitive log-in
Kenren Taisho <[email protected]> Sat, 23 Nov 2019 09:31:25 +0800
| Newsgroups | gmane.comp.horde.user |
|---|---|
| Message-ID | <CAGLuZDPOTA3EN=2Rr+596O5-df=aFys9VOV_SB81tjFHaKM=9g@mail.gmail.com> |
Hi Jan, Thanks for the heads up, it's working now. Kind regards, On Sat, Nov 23, 2019 at 3:52 AM Jan Schneider <[email protected]> wrote: > > Zitat von Kenren Taisho <[email protected]>: > > > 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/ > > -- > Horde mailing list > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: [email protected] > -- Horde mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]