[dev] Login with capitalized email
Michael M Slusarz
slusarz at horde.org
Wed Feb 16 19:28:30 UTC 2011
Quoting Gonçalo Queirós <goncalo.queiros at portugalmail.net>:
> Hi there list.
> I don't know if this is the intended behavior, but if i have a user with
> email (example at example.com) and he logs in with (EXAMPLE at example.com),
> for Horde they are different users, so new prefs will be created etc..Is
> this the intended behavior? If it's the expected behavior, using the
> preauthenticate hook to return strtolower($userId) is the correct way
> to fix this?
Yes, that is expected behavior. Yes, that would be a correct way of
handling on your local system.
FWIW, IMAP usernames ARE case sensitive. (RFC 3501). So are e-mail
address local-parts (i.e. everything before '@'). (RFC 5322).
However, with the latter, very few local systems enforce case
sensitivity so in practical use e-mail addresses are case insensitive
(domain names are always case insensitive).
michael
--
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the dev
mailing list