On Saturday, August 26, 2017 at 8:24:40 AM UTC-4, Andrea Fae' wrote:
>
> Hello, is it possible to get email field in auth_user table not unique? I 
> don't use email form accessing but username.
> I don't want to create a custom auth_user table if it's possible.
>

You can do something like:

db.auth_user.email.requires = db.auth_user.email.requires[:-1]

which will drop the IS_NOT_IN_DB validator.

Note, some features of the Auth system may expect unique emails. For 
example, if a user requests a password reset, the email sent to the user 
will not identify which account is being reset.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to