SUPEE 6788 和密码重置(空白页)

SUPEE 6788 and Password Reset (blank page)

我已经安装了 SUPEE 6788。然后发现当您点击电子邮件中的重置 link 时,密码重置页面是空白的。任何想法如何使重置页面显示出来? 以前重置页面是这个 /customer/account/resetpassword/ 补丁更新后是 /customer/account/changeforgotten/ 它是空白的

补丁中的技术描述

APPSEC-1027,密码重置过程保护不足

此更改通过将 form_key 添加到客户注册页面 template/customer/form/register.phtml 以及对忘记密码页面 layout/customer.xml 和 [=26= 的类似更改来影响模板].phtml。如果您的商店包含自定义注册或忘记密码模板,请确保也在那里添加此密钥..

如果在 SUPEE-6788 patch 之后您遇到“忘记密码问题”,换句话说,页面是空白的。

您必须编辑 customer.xml 文件并将客户布局 customer_account_resetpassword 替换为 customer_account_changeforgotten

File location: app/design/frontend/theme/default/layout/customer.xml the theme name might be different for you.

刷新缓存,一切顺利!

您必须编辑 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,主题名称可能与您不同。

使用这些更改更新您的 app/design/frontend/%custom%/%theme%/layout/customer.xml 布局文件:

来源:gist.github.com/Nolwennig

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>