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

问题描述 投票:13回答:4

我已经安装了SUPEE 6788.然后注意到当您单击电子邮件中的重置链接时,密码重置页面为空白。有任何想法如何使重置页面显示?以前重置的页面使用是/ customer / account / resetpassword /补丁更新之后它是/ customer / account / changeforgotten /并且它是空白的

补丁的技术说明

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

此更改通过将form_key添加到客户注册页面模板/ customer / form / register.phtml以及对密码忘记页面布局/ customer.xml和template / customer / form / resetforgottenpassword.phtml的类似更改来影响模板。如果您的商店包含自定义注册或忘记密码的模板,请务必在此处添加此密钥。

magento magento-1.7 magento-1.9 magento-1.8
4个回答
45
投票

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

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

文件位置:app/design/frontend/theme/default/layout/customer.xml主题名称可能与您有所不同。

刷新你的缓存,一切都好!


1
投票

使用以下更改更新app/design/frontend/%custom%/%theme%/layout/customer.xml布局文件:

enter image description here

来源:gist.github.com/Nolwennig


1
投票
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>

0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.