[web2py] Re: auth_user email field

2017-08-26 Thread Anthony
On Saturday, August 26, 2017 at 8:43:56 AM UTC-4, 黄祥 wrote: > > had you already tried ? > *e.g. not tested* > # after auth.define_tables() > db.auth_user.email.unique = False > or > auth_table.email.unique = False > The issue is the IS_NOT_IN_DB validator, not the "unique" attribute (the latter

[web2py] Re: auth_user email field

2017-08-26 Thread Anthony
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:

[web2py] Re: auth_user email field

2017-08-26 Thread 黄祥
had you already tried ? *e.g. not tested* # after auth.define_tables() db.auth_user.email.unique = False or auth_table.email.unique = False if not work perhaps you can custom auth_table ref: http://web2py.com/books/default/chapter/29/09/access-control#Customizing-Auth best regards, stifan --