remember_me module raises 'undefined method' error if no SSL. #273
Labels
bug
Something isn't working
to be implemented in v1
This issue or pull request will be resolved in the v1 rework, but has not yet been completed.
Configuration
Expected Behavior
I just turned enabled remember_me. I don't expect it to work on localhost without SSL but it shouldn't blow up.
Actual Behavior
With the
remember_me
module enabled, if you check to see if the user islogged_in?
, this code in theremember_me
module raises an errorundefined method 'signed' for nil:NilClass
because signed cookies are not available unless you are using SSL.Steps to Reproduce
This workaround fixes it for me:
It's an easy fix and I can submit a PR with a test if it's useful.
The check for cookies needs to check whether cookies is nil.
The text was updated successfully, but these errors were encountered: