【发布时间】:2017-03-18 05:41:09
【问题描述】:
在忘记密码表格中,我需要在magento检查之前获取电子邮件并更改它。
为什么?,因为我需要将客户个人号码(例如 9834592845)更改为他们在数据库中的电子邮件存储 (bla@ble.bli)
我参与该活动: controller_action_predispatch_customer_account_forgotpassword
但我无法收到电子邮件,我试过了
$username = $observer->getRequest()->getPost('email');
$username = $observer->getRequest()->getPost();
$postData = Mage::app()->getRequest()->getPost();
$username = $observer->getData('email');
$username = $observer->getEmail();
$username = $_POST;
$username = $_POST['login']['username'];
$username = $_POST['login']['email'];
Mage::log($username);
还有更多,但什么都没有。
我做错了什么。
感谢您的帮助。
【问题讨论】:
-
试试 Mage::app()->getRequest()->getParams();而不是把它放在日志中,你可以转储并死掉它。
标签: magento events forgot-password