Couldn't you just add something like this?
#in your db.py, after auth.define_tables()
db.auth_user.email.requires=(IS_LOWER(),IS_EMAIL(),IS_NOT_IN_DB(db,'auth_user.email'))

Or if you use customize your auth tables ...:
Field('email', length=512,default='',comment='*'

 ,requires=(IS_LOWER(),IS_EMAIL(),IS_NOT_IN_DB(db,'auth_user.email')))


On Friday, December 16, 2011, Anthony wrote:

> def user():
>     if request.args(0) == 'register':
>         db.auth_user.email.requires.insert(0, IS_LOWER())
>     [rest of code]
>
> Note, the above assumes there is already at least one validator defined
> for the email field (which there should be by default) -- otherwise, just
> do requires=...
>
> Anthony
>
> On Thursday, December 15, 2011 5:09:37 PM UTC-5, thstart wrote:
>>
>> could you please post a code how to that for register especially?
>
>

Reply via email to