Magento客户登录无法获取密码哈希

Magento客户登录无法获取密码哈希,magento,magento-1.9,Magento,Magento 1.9,调试客户登录问题时,我面临以下行为: 方法getPasswordHash()在customer controller的loginPost操作中返回一个空字符串 到目前为止,我在客户模型。但getPasswordHash似乎是一种通用方法(用于返回db值,但存在客户数据) 欢迎提出建议 更新 当我清理Cookie并成为新会话时,该问题将暂时修复。但是,它会反复出现getPasswordHash()从数据库返回哈希值 在数据库中运行此查询: select e.email, v.value from

调试客户登录问题时,我面临以下行为:

方法getPasswordHash()在customer controller的loginPost操作中返回一个空字符串

到目前为止,我在客户模型。但getPasswordHash似乎是一种通用方法(用于返回db值,但存在客户数据)

欢迎提出建议

更新

当我清理Cookie并成为新会话时,该问题将暂时修复。但是,它会反复出现

getPasswordHash()
从数据库返回哈希值

在数据库中运行此查询:

select e.email, v.value from customer_entity e join customer_entity_varchar v on e.entity_id=v.entity_id join eav_attribute a on v.attribute_id=a.attribute_id where attribute_code='password_hash' and e.email='customer_email_here';
它应该显示给定客户电子邮件的哈希值。如果那里什么都没有,那么问题就出在数据库上


如果在数据库中确实看到哈希值,则可能是与设置冲突的扩展。我将检查是否有任何扩展正在覆盖
Mage\Customer
中的类,并解决这些冲突。您还可以在
app\code\local\Mage
中修改代码,以更改默认行为。

此处没有足够的上下文来给出适当的答案。您可以用您试图解决的登录问题更新您的问题吗?另外,应该有
return Mage::helper('core')->validateHash($password,$hash)。(您忘记复制该部分了吗?)错误消息是常见的“无效用户名或密码”。validatePassword方法只是部分复制,以显示我去过的地方。此时,我得到了空的$hash,对于所提到的getter没有太多线索。正如我前面所说的,您的查询返回了正确的结果,即数据存在。我保持我的代码/本地代码干净。在xmls中也没有发现任何客户模型的重写。不过还是谢谢你
select e.email, v.value from customer_entity e join customer_entity_varchar v on e.entity_id=v.entity_id join eav_attribute a on v.attribute_id=a.attribute_id where attribute_code='password_hash' and e.email='customer_email_here';