Skip to content

Commit

Permalink
Fix the forgot password form sticky data
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoghan O'Brien committed Sep 8, 2016
1 parent 01d0551 commit 6f6880b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/code/community/Studioforty9/Recaptcha/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ public function onFailedRecaptchaLogin(Varien_Event_Observer $observer)
*/
public function onFailedRecaptchaForgotPassword(Varien_Event_Observer $observer)
{
$data = $observer->getEvent()->getControllerAction()->getRequest()->getPost('login');
$login = isset($data['username']) ? $data['username'] : null;
Mage::getSingleton('customer/session')->setUsername($login);
$email = $observer->getEvent()->getControllerAction()->getRequest()->getPost('email');
Mage::getSingleton('customer/session')->setForgottenEmail($email);
}
}

0 comments on commit 6f6880b

Please sign in to comment.