I just went through this in a project that I upgraded from 2.3.9 to 3.0.12. Make sure the csrf helper is in place on your application layout file.
Walter
> Hi Walter,
>
> Thank you very much for reply. I have referred this link for removing csrf warning and added following in layout file
>
> <meta name="csrf-token" content="<%= form_authenticity_token %>" />
> <meta name="csrf-param" content="authenticity_token" />
>
> By result of that, the warning is removed but problem still exist.
When you're having the redirect issue, are you trying with a new user that you registered on the site, or are you trying to use the old logins from your previous authentication system?
Walter
> I have tried with both the approaches. I have configured devise in model as follows
>
> devise :database_authenticatable, :registerable,:recoverable, :rememberable, :confirmable,:trackable,
> :encryptable,:encryptor => :restful_authentication_sha1,:authentication_keys => [:login]
>
> In config/devise.rb file I have set configuration as
>
> config.authentication_keys = [ :login ]
> config.reset_password_keys = [ :login ]
> config.case_insensitive_keys = [ :login ]
> config.strip_whitespace_keys = [ :login ]
My question was more related to the user you are testing with. Is this a newly-registered user, someone you added after converting to Devise, or is it an existing user? The difference is that for the former, you know the hashing will be identical, because you made the hash with the same technique you're trying to use to confirm it. With the latter, it's less clear. Even though you have set up a hasher that *should* be identical, you never can tell with hashes.