But did you try using the IS_LOWER validator?
On Thursday, December 15, 2011 2:09:33 PM UTC-5, thstart wrote: > > I used your suggestion for 'reset_email_lower' from this thread > but it doesn't works with register. It works for login/reset_password > but not with register. > > https://groups.google.com/forum/#!topic/web2py/1QjBUy62jP8 > I added this code (reset_email_lower) to registration > too. But I checked the database and see the following: > > 1) I create a new user account with email all lower case. > 2) the app logs in as default. > 3) Log out. > 4) I try to create a new user account with same email but > first letter a capital. I see in the database that a new account is created > and the email is stored a lower cap but now I have two id's with the same > email in auth_user table > 5) after creating the new account the app logs automatically > and in auth_event I see User ##### Registered and in user_id column > the user_id of the other account which already was created with lower caps. > > Bottom line - when registering - how to convert the email to lower cap so > web2py to be able to check if the same email is already registered, > and if so to prevent creating of a new account and notify the user that > the account > already exist. >

