[horde] Fwd: [dev] Case insensitive unique key

Vilius Šumskas vilius at lnk.lt
Wed May 4 12:38:51 UTC 2011


> On 05/03/2011 01:24 PM, Andrew Morgan wrote:
> > On Tue, 3 May 2011, Jan Schneider wrote:
> >
> >> Admins,
> >>
> >> please take a look at this conversation on the developer mailing list.
> >> This is the context for the question if we should normalize all user
> >> names to lower case in Horde 5.
> >
> > I have always used a hook to lowercase all usernames. I had confused
> > users say that their preferences were gone because they logged in with a
> > different case for their username. So I decided they should all be
> > lowercase.
> >
> > Andy
> 
> We had to do the same thing in the past (force lowercase) as well as
> removing spaces from the start and end of userids.
> 
> So I agree with normalizing.

+1 from me. I also agree that using trim() on the username is another good idea. Not sure why IMAP servers allow to login with usernames with spaces.

-- 
   Vilius



More information about the horde mailing list