stevepolitodesign/rails_mvp_authentication

Fix branching login in test helper

Opened this issue · 1 comments

This should be:

elsif  cookies[:remember_token].present
   ...
end

else
cookies[:remember_token].present?
ActiveSession.find_by(remember_token: cookies[:remember_token])&.user
end

This is fixed.