Ruby on rails 我如何告诉Desive authentication忽略IP地址更改?
我使用Desive with Rails3进行身份验证,但是由于应用程序的性质,客户端的IP发生了变化。我如何停止设计要求用户会话位于单个IP上。显然,当IP发生变化时,cookie是持久的 非常感谢我想您的设计选项中有一些东西是值得记住的,比如:Ruby on rails 我如何告诉Desive authentication忽略IP地址更改?,ruby-on-rails,ruby-on-rails-3,devise,Ruby On Rails,Ruby On Rails 3,Devise,我使用Desive with Rails3进行身份验证,但是由于应用程序的性质,客户端的IP发生了变化。我如何停止设计要求用户会话位于单个IP上。显然,当IP发生变化时,cookie是持久的 非常感谢我想您的设计选项中有一些东西是值得记住的,比如: class User < ActiveRecord::Base devise :database_authenticatable, :confirmable, :recoverable, :rememberable, :tracka
class User < ActiveRecord::Base
devise :database_authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable
end
再次强调模型和迁移的可记忆性。
文档是。Hmmm看起来只要会话持续,designe就应该持续。你能发布你的设计配置吗?有自定义选项吗?对不起,我说的完全是胡说八道,但doucments确实帮我弄清楚了问题到底是什么。非常感谢。没问题,很高兴我能帮忙。
create_table :users do |t|
t.database_authenticatable
t.confirmable
t.recoverable
t.rememberable
t.trackable
t.timestamps
end