Homeland 为什么 ruby-china 中的 devise 配置文件和与正式的 1.5.3 中不太一样?

qichunren · December 27, 2011 · Last by qichunren replied at February 04, 2012 · 3014 hits

我在调试 ruby-china.org 的 http basic auth 时,发现不成,我看配置文件: https://github.com/huacnlee/ruby-china/blob/master/config/initializers/devise.rb#L30

发现说是默认的打开了 HTTP Basic Auth,然后我到到官方发找到对应的 devise 配置文件,发现 ruby-china 的和官方的不一致。 https://github.com/plataformatec/devise/blob/442beefa9b1f7d4623ded34278dc91a9d69dab24/lib/generators/templates/devise.rb#L48

它描述的默认是关了这个功能的。

搞得我调试了一小会儿,将 config.http_authenticatable 设置成 true 好就可以验证了。

我帖子节点不小心选错了,不能改啊。

qichunren in 怎么在 Grape 中集成 Devise 的验证? mention this topic. 03 Apr 10:56
You need to Sign in before reply, if you don't have an account, please Sign up first.