Thanks, Massimo!! Perfecto! You're the man. Good luck on your position with 
the university!
On Thursday, October 23, 2014 9:23:04 AM UTC-5, Massimo Di Pierro wrote: 
>
> db.auth_user.username.requires = IS_LENGTH(20) 
>
> you can specify a min length and max length.
>
> On Thursday, 23 October 2014 01:43:34 UTC-5, LoveWeb2py wrote: 
>>
>> Hello -- simple question. Is it possible to set a username length with  
>>
>> db.auth_user.username.requires = length 20
>>
>> Something to that effect? By default users can create as long of a 
>> username as they want and I'd like to make it a little more secure. The 
>> book mentions redefining the auth.user table but I was wondering if there 
>> is a built-in dal method I could use in db.py
>>
>

-- 
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