You have to set it before calling auth.define_tables(). Also, it will have 
no effect if you set your own db.auth_user.password.requires.

Anthony

On Tuesday, January 28, 2014 2:52:07 AM UTC-5, User wrote:
>
> In the web2py book it says:
>
> By default, auth also requires a minimum password length of 4. This can be 
> changed:
>
> auth.settings.password_min_length = 4
>
>
> (from http://www.web2py.com/book/default/chapter/09#Settings-and-messages)
>
> So I tried changing to:
>
> auth.settings.password_min_length = 7
>
>
> After web2py server restart this still allows registration with a password 
> less
>
> than 7 characters (4 still seems to be the minimum).  What am I missing?
>
>
>

-- 
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/groups/opt_out.

Reply via email to