1

在我的开发机器上,我可以正常登录,但是一旦投入生产,迁移中创建的基本用户的身份验证就会失败。

我可以重置我的密码,这样做后我会自动登录,但是当我注销并尝试使用新输入的密码再次登录时,它再次告诉我我的电子邮件和/或密码错误。

为什么会这样?

=== 更新

class User < ActiveRecord::Base
  # default devise modules
  devise :database_authenticatable, :registerable,
     :recoverable, :rememberable, :trackable, :validatable
  ... 
end
4

1 回答 1

0

我的登台服务器上有同样的问题。最奇怪的是它可以在我的个人计算机上的生产环境中工作......

在这里解决:http ://groups.google.com/group/plataformatec-devise/browse_thread/thread/20a73a2b7976806f

谢谢 !

于 2010-09-26T18:41:06.227 回答