Re: [web2py] Re: password validator

2016-12-02 Thread Marvi Benedet
Sorry for the delay, I was busy on other tasks. I tried and works like a charm! Many thanks! 2016-11-24 2:35 GMT+01:00 Anthony : > On Wednesday, November 23, 2016 at 8:20:48 AM UTC-5, Marvix wrote: >> >> so, is there a way to disable the password validator in the login form >> without modify w

Re: [web2py] Re: password validator

2016-11-23 Thread Anthony
On Wednesday, November 23, 2016 at 8:20:48 AM UTC-5, Marvix wrote: > > so, is there a way to disable the password validator in the login form > without modify web2py core files? > Yes, that is exactly my solution. The user() function in the default.py controller of the scaffolding app is not par

Re: [web2py] Re: password validator

2016-11-23 Thread Marvi Benedet
so, is there a way to disable the password validator in the login form without modify web2py core files? 2016-11-22 14:36 GMT+01:00 Anthony : > def user(): > if request.args(0) == 'login': > custom_auth_table.password.requires.pop(0) > return dict(form=auth()) > > The default pas

[web2py] Re: password validator

2016-11-22 Thread Anthony
def user(): if request.args(0) == 'login': custom_auth_table.password.requires.pop(0) return dict(form=auth()) The default password validator is CRYPT(key=settings.hmac_key, min_length=settings.password_min_length), and the auth.login() method automatically resets the min_length