|
shop:on_changePassword AJAX handler
Handles the change customer password request.
Usually this handler used on the Change Password page,
together with the action:@shop:change_password action.
The following code example creates a Change Password link, which triggers the AJAX request:
1. <a href= "#" onclick= "return $(this).getForm().sendRequest('shop:on_changePassword')" >Submit</a> Supported form fields
Supported form field details¶ old_password form fieldSpecifies the old customer's password. Required.
¶ password form fieldSpecifies the new password. Required.
¶ password_confirm form fieldSpecifies the password confirmation. Required.
¶ redirect form fieldAn optional field containing an URL for redirecting a visitor's browser after
the successful password update. Note that you should use the root_url() function if your copy of LemonStand is installed in a subdirectory.
¶ flash form fieldAn optional message to display after the redirection.
Use the flash_message() function the target page to display the message.
|