Proposition 2.2.3 always displays a signed notification before logging in

Run 2.2.3 after upgrade due to rail security issues, always before logging in, you see a signed notification, and when I try to log in, it returns

Started POST "/users/sign_in" for 127.0.0.1 at 2013-02-17 00:55:34 +0530
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Uri7L+RS+l3Nwjln1cBLfwxfMWEdEYz3gWEHyXpbRPc=", "user"=>{"email"=>"abcdedf@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
Completed 401 Unauthorized in

      

Rails version: 3.1.x

+3


source to share


2 answers


This strange behavior came from caching controller actions by disabling it in /production.rb environments and solved it.



+2


source


try it

In config / initializers / devise.rb



True by default.

config.http_authenticatable_on_xhr = false

      

0


source







All Articles