我已经安装了SUPEE 6788.然后注意到当您单击电子邮件中的重置链接时,密码重置页面为空白。有任何想法如何使重置页面显示?以前重置的页面使用是/ customer / account / resetpassword /补丁更新之后它是/ customer / account / changeforgotten /并且它是空白的
补丁的技术说明
APPSEC-1027,密码重置过程保护不足
此更改通过将form_key添加到客户注册页面模板/ customer / form / register.phtml以及对密码忘记页面布局/ customer.xml和template / customer / form / resetforgottenpassword.phtml的类似更改来影响模板。如果您的商店包含自定义注册或忘记密码的模板,请务必在此处添加此密钥。
如果在SUPEE-6788 patch之后您遇到“忘记密码问题”,换句话说该页面是空白的。
您必须编辑customer.xml
文件并用customer_account_resetpassword
替换客户布局customer_account_changeforgotten
。
文件位置:
app/design/frontend/theme/default/layout/customer.xml
主题名称可能与您有所不同。
刷新你的缓存,一切都好!
Find
<customer_account_resetpassword translate="label">
<label>Reset a Password</label>
<remove name="right"/>
<remove name="left"/>
<reference name="head">
<action method="setTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
<action method="setHeaderTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="content">
<block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
</reference>
</customer_account_resetpassword>
And Paste Below Code
<customer_account_changeforgotten translate="label">
<label>Reset a Password</label>
<remove name="right"/>
<remove name="left"/>
<reference name="head">
<action method="setTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
<action method="setHeaderTitle" translate="title" module="customer">
<title>Reset a Password</title>
</action>
</reference>
<reference name="content">
<block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
</reference>
</customer_account_changeforgotten>
您必须编辑customer.xml文件并替换
customer_account_resetpassword translate="label"
到customer_account_changeforgotten translate="label"
和block type="customer/account_resetpassword"
到block type="customer/account_changeforgotten"
文件位置是app/design/frontend/theme/default/layout/customer.xml
,主题名称可能与您有所不同。