diff --git a/app/controllers/check_records/check_records_controller.rb b/app/controllers/check_records/check_records_controller.rb index b7957227..c7c3ea8b 100644 --- a/app/controllers/check_records/check_records_controller.rb +++ b/app/controllers/check_records/check_records_controller.rb @@ -17,7 +17,6 @@ def current_namespace def authenticate_dsi_user! if current_dsi_user.blank? - flash[:warning] = "You need to sign in to continue." redirect_to check_records_sign_in_path end end @@ -33,7 +32,6 @@ def handle_expired_session! end if Time.zone.at(session[:dsi_user_session_expiry]).past? - flash[:warning] = "Your session has expired. Please sign in again." redirect_to check_records_sign_out_path end end diff --git a/spec/system/check_records/user_session_expires_spec.rb b/spec/system/check_records/user_session_expires_spec.rb index b7e60660..e4bcf2dc 100644 --- a/spec/system/check_records/user_session_expires_spec.rb +++ b/spec/system/check_records/user_session_expires_spec.rb @@ -21,7 +21,7 @@ def and_my_session_expires end def then_i_am_required_to_sign_in_again - expect(page).to have_content "Your session has expired. Please sign in again." + expect(page).to have_content "Sign in to check a teacher’s record" end def when_i_refresh_the_page