web2py version 1.98.2

I have a custom form on reset_password, where i want to have my own 
validations on top of default validations, but reset_password_onvalidation 
was not called on resetting password.

Digging into code, I observed that while fetching retrieve_password form 
onvalidation is set to reset_password_onvalidation in request_reset_password 
api whereas reset_password_deprecated uses retrieve_password_onvalidation as 
onvalidation. Also while generating reset_password form, onvalidation and 
onaccept are ignored. 

Is this functionality intended? (I am not aware of history behind migrating 
to request_reset_password from reset_password_deprecated.)

How can I have custom validations of custom reset_password form? Any 
validations added dynamically via form.custom.widget.new_password.requires 
are ignored.

Regards

Reply via email to