shop:on_changePassword AJAX handler
Defined in |
/modules/shop/classes/shop_actions.php, lines 1031-1063 |
Author |
LemonStand eCommerce Inc. |
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:
<a href="#" onclick="return $(this).getForm().sendRequest('shop:on_changePassword')">Submit</a>
Field |
Type |
Description |
old_password |
string |
specifies the old customer's password. Required. |
password |
string |
specifies the new password. Required. |
password_confirm |
string |
specifies the password confirmation. Required. |
redirect |
string |
an optional field containing an URL for redirecting a visitor's browser after. |
flash |
string |
an optional message to display after the redirection. |
Supported form field details
¶
old_password form field
Specifies the old customer's password. Required.
¶
password form field
Specifies the new password. Required.
¶
password_confirm form field
Specifies the password confirmation. Required.
¶
redirect form field
An 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 field
An optional message to display after the redirection.
Use the flash_message() function the target page to display the message.
|