【问题标题】:magento : Your password reset link has expiredmagento : 您的密码重置链接已过期
【发布时间】:2014-11-13 09:53:40
【问题描述】:

当我点击重置密码链接 url 时出现问题:

我在一个 magento 平台上有四个网站,例如:domain.com、domain.com/us/domain.com/it/domain.com/ca/

在我的主站点 (domain.com) 上,当我点击忘记密码时,我会收到一封带有重置密码链接的电子邮件。当我点击重置密码链接时,我成功重定向到重置密码网址。

但是当我对我的其他网站(例如 domain.com/us /customer/account/forgotpassword/) 而不是重置密码链接,我收到一条错误消息,指出“您的密码重置链接已过期”。

【问题讨论】:

    标签: magento-1.9


    【解决方案1】:

    为您的主题更新 app/design/frontend/your_theme_package/your_theme_name/layout/customer.xml 文件,如下面的差异所示(your_theme_package/your_theme_name 是您的主题名称):

     *   Find <customer_account_resetpassword translate="label"> replaced by   <customer_account_changeforgotten translate="label">
           <label>Reset a Password</label>
    
        <reference name="content">
    
       *  find            <block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
        replaced by           <block type="customer/account_changeforgotten" name="changeForgottenPassword" template="customer/form/resetforgottenpassword.phtml"/>
                 </reference>
    
      *   find    </customer_account_resetpassword>
         replaced    </customer_account_changeforgotten>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-10
      • 2011-12-16
      • 2020-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-05
      • 2013-03-23
      相关资源
      最近更新 更多