Question

I am using magento1.7.0.2 , want to perform some operation while user submit request for forgot password from frontend using event observer.

i tried customer_save_after is a event for adminhtml not for frontend.

any help would be appreciate!

Was it helpful?

Solution

Try to play around with events:

To run your observer after reset password action

controller_action_postdispatch_customer_account_forgotpassword

and in your observer add checking if email is sent

$email = (string) $this->getRequest()->getPost('email');
if ($email) {
    //here place your code to notify customer
}

OTHER TIPS

Use eventcontroller_action_postdispatch_customer_account_forgotpasswordpost instead of controller_action_postdispatch_customer_account_forgotpassword

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top