All the code about Auth is in gluon/tools.py. True we do not check at the 
db level but we check at the web2py level:

Field('email', length=512, default='',
                          label=self.messages.label_email,
                          requires=is_unique_email),


On Sunday, 10 February 2013 10:11:39 UTC-6, Yarin wrote:
>
> Why are email/username fields not created with (unique=True) by default? 
> Since these fields are use to identify users, non-unique values would 
> clearly break auth.
>
> (Side note: where is the code for defining the default auth table fields 
> located?- can't find it anywhere)
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to