I noticed that the change password form is not obeying the "formstyle" value

in gluon tools.py

If you see the change_password() function

you see

form = form_factory(
            Field('old_password', 'password',
                label=self.messages.old_password,
                requires=validators(
                     table_user[passfield].requires,
                     IS_IN_DB(s, '%s.%s' % (usern, passfield),
error_message=self.messages.invalid_password))),
            Field('new_password', 'password',
                label=self.messages.new_password,
                requires=table_user[passfield].requires),
            Field('new_password2', 'password',
                label=self.messages.verify_password,
requires=[IS_EXPR('value==%s' % repr(request.vars.new_password),
                              self.messages.mismatched_password)]),
            submit_button=self.messages.submit_button
        )

I added the following line; But I am not sure if it works yet;

        form.formstyle = self.settings.formstyle


Reply via email to