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 on http://web2py.com/book/default/chapter/08#Authentication a
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?

Reply via email to