diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-23 13:27:20 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-23 13:27:20 +0100 |
commit | 8901b02a59ec24cdfd09cc5fb9c96a7cebe33d31 (patch) | |
tree | c6e507684e6a432e52f1063788a1ff5bf18bd410 | |
parent | 6d8960d7cd5e736fa75ca9734145f63dea04619c (diff) |
Don't redirect to signin on expiration of a non remember-me session
In practice, it's just confusing if you've been away from the site.
-rw-r--r-- | app/controllers/application_controller.rb | 1 | ||||
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 044f8e10f..e80c6a823 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -132,7 +132,6 @@ class ApplicationController < ActionController::Base def validate_session_timestamp if session[:user_id] && session.key?(:ttl) && session[:ttl] < SESSION_TTL.ago clear_session_credentials - redirect_to signin_path end end diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb index ae8d4f256..844fcd4e6 100644 --- a/spec/controllers/general_controller_spec.rb +++ b/spec/controllers/general_controller_spec.rb @@ -169,7 +169,6 @@ describe GeneralController, "when showing the frontpage" do it 'should end a logged-in session whose ttl has expired' do session[:ttl] = Time.now - 4.hours get :frontpage - response.should redirect_to signin_path session[:user_id].should be_nil end |