SUPEE 6788 and Password Reset (blank page)

戏子无情 提交于 2019-12-17 23:44:44

问题


I've installed SUPEE 6788. Then noticed that password reset page is blank when you click on the reset link in the email. Any ideas how to make the reset page to show up ? Previously reset page use to be this /customer/account/resetpassword/ After patch update it's /customer/account/changeforgotten/ and it's blank

Tech description from the Patch

APPSEC-1027, Insufficient Protection of Password Reset Process

This change affects templates by adding form_key to customer registration page template/customer/form/register.phtml and similar changes to password forgotten page layout/customer.xml and template/customer/form/resetforgottenpassword.phtml. If your store includes customized registration or password forgotten template, make sure to add this key there as well..


回答1:


In case after the SUPEE-6788 patch you experience «Forgot password issue», in other words the page is blank.

You have to edit customer.xml file and replace customer layout customer_account_resetpassword with customer_account_changeforgotten.

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

Refresh your cache, and all good!




回答2:


Update your app/design/frontend/%custom%/%theme%/layout/customer.xml layout file with these changes:

source: gist.github.com/Nolwennig




回答3:


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>



回答4:


You have to edit customer.xml file and replace

customer_account_resetpassword translate="label" to customer_account_changeforgotten translate="label"

and block type="customer/account_resetpassword" to block type="customer/account_changeforgotten"

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



来源:https://stackoverflow.com/questions/33443503/supee-6788-and-password-reset-blank-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!