Re: [web2py] auth_user table password requires=is_not_empty() get overrided

2012-02-22 Thread Richard Vézina
I see... Thank you Anthony! Richard On Wed, Feb 22, 2012 at 12:32 PM, Anthony wrote: > By default, CRYPT generates a hashed value even if you submit an empty > string, so if you put IS_NOT_EMPTY after CRYPT, it will pass validation. > However, there's no reason to use IS_NOT_EMPTY because CRYP

Re: [web2py] auth_user table password requires=is_not_empty() get overrided

2012-02-22 Thread Anthony
By default, CRYPT generates a hashed value even if you submit an empty string, so if you put IS_NOT_EMPTY after CRYPT, it will pass validation. However, there's no reason to use IS_NOT_EMPTY because CRYPT itself takes a min_length argument, which defaults to 0. Note, there is also an Auth setti

[web2py] auth_user table password requires=is_not_empty() get overrided

2012-02-22 Thread Richard
Hello, User are allow to enter noting when they change their password in application/user/change_password form, I can also create user without password in appadmin even if I set requires=is_not_empty() in the model of auth_user table. # Here my model definition : auth_table = db.define_table(