[英]Customers can't login in magento
Customers can't login in my magento 1.8.1 store. 客户无法登录我的magento 1.8.1商店。 The page refreshes when you fill in your e-mail and password and push sudmit.
当您填写电子邮件和密码并按sudmit时,页面将刷新。 What is the problem?
问题是什么? My store is: www.stropdassenexpert.nl
我的商店是:www.stropdassenexpert.nl
Many thanks! 非常感谢!
The problem is that you theme is not compatible with the 1.8.1 code. 问题在于您的主题与1.8.1代码不兼容。
There is a new security measure in 1.8. 1.8中有一项新的安全措施。 (Almost) Each POST must contain the session form key.
(几乎)每个POST必须包含会话表单密钥。 The login form is one of those cases.
登录表单就是其中一种情况。
Add this line: 添加此行:
<?php echo $this->getBlockHtml('formkey'); ?>
In the following files inside the <form>
tag. 在
<form>
标记内的以下文件中。
app/design/frontend/{interface}/{theme}/template/persistent/customer/form/login.phtml
app/design/frontend/{interface}/{theme}/template/persistent/customer/form/register.phtml
app/design/frontend/{interface}/{theme}/template/customer/form/login.phtml
app/design/frontend/{interface}/{theme}/template/customer/form/register.phtml
I'm almost sure that there are other files that need this. 我几乎可以确定还有其他文件需要此文件。 If something else doesn't work, compare your template with the one from
base/default
and see if the form key is missing inside the form. 如果其他方法不起作用,请将您的模板与
base/default
模板进行比较,看看表单内是否缺少表单密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.