Devise - remember me not working? LocalHost Issue?

后端 未结 4 724
青春惊慌失措
青春惊慌失措 2020-12-17 22:11

I\'m using devise with my rails 3 app. For some reason the sign in with Remember Me is not working.

Could this be due to testing on localhost:3000 ?

in devis

4条回答
  •  一整个雨季
    2020-12-17 22:56

    The Devise remember_user_token cookie could be set to 'secure only', in which case it doesn't work with the development rails server on http (browser never sends it back to the server).

    Check initializers/devise.rb for rememberable_options = {:secure => true}

提交回复
热议问题