oops. Bug. fixed in trunk.
On Apr 4, 3:58 am, "Ab..." <[email protected]> wrote: > Hello, > > In an application that allows password column in auth_user table to be > null as it uses facebook login also, I have a change password auth > form where I'd like to force validation that new password can not be > blank.. > > Based onhttp://web2py.com/book/default/chapter/08#Authenticationa > few lines below "Settings and Messages" heading, I am trying to do : > > auth.settings.change_password_onvalidation = lambda form: > passwordvalidation(form)) > def passwordvalidation(form): > print "do validation" > > But I am getting an error saying : raise SyntaxError, 'setting key \'%s > \' does not exist' % key > SyntaxError: setting key 'change_password_onvalidation' does not exist > > Any pointers?

