Where is the best place to make e-mail by registration and login to be 
converted always to lower case?

For example on registration form when everything is
disabled but the email/password, when the user enters:

Email:someb...@gmail.com
and
Email:someb...@gmail.com

web2py creates different accounts.

Now that can easily be changed by forcing the entered email to be only 
lower case and be stored in the database as a lower case.

Later when the user wants to login, again email address he entered to be 
converted to lower case thus to match the database entry.


So this lower case conversion has to be done at two places - 
the question is where is the best place to do that?


Regards,
--Constantine




Reply via email to