1

I'm trying to create a custom password reset page. I placed the following page in a cms page:

{{block type="customer/form_login" template="customer/form/reset_password.phtml"}}

When submitting form, it goes to a 404 page. Assuming it has to do something with the action in form on reset_password.phtml:

action="<?php echo $this->getUrl('*/*/forgotpasswordpost') ?>"

How do I correctly process this form?

2 Answers 2

2

That block has getForgotPasswordUrl() available

See: https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Customer/Block/Form/Login.php#L73

2
  • I understand I can link to the default forgotpassword.phtml, however, I am trying to create an additional custom page.
    – frshjb373
    Aug 18, 2014 at 21:19
  • This action ended up working for me: <?php echo Mage::getUrl('customer/account/forgotpasswordpost') ?>
    – frshjb373
    Aug 18, 2014 at 21:32
2

Try

{{block type="customer/account_forgotpassword" template="customer/form/reset_password.phtml"}}

The form need to be posted to the correct url which is define in the block type

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.