Maintenance: Updated activerecord-session_store gem dependency to 2.0.0.

This commit is contained in:
Thorsten Eckel 2021-03-10 09:07:57 +01:00 committed by Martin Edenhofer
parent b1ec8941d4
commit 78da2d5062
4 changed files with 13 additions and 7 deletions

View file

@ -85,12 +85,12 @@ GEM
activerecord (>= 3.2) activerecord (>= 3.2)
activerecord-nulldb-adapter (0.3.9) activerecord-nulldb-adapter (0.3.9)
activerecord (>= 2.0.0) activerecord (>= 2.0.0)
activerecord-session_store (1.1.3) activerecord-session_store (2.0.0)
actionpack (>= 4.0) actionpack (>= 5.2.4.1)
activerecord (>= 4.0) activerecord (>= 5.2.4.1)
multi_json (~> 1.11, >= 1.11.2) multi_json (~> 1.11, >= 1.11.2)
rack (>= 1.5.2, < 3) rack (>= 2.0.8, < 3)
railties (>= 4.0) railties (>= 5.2.4.1)
activestorage (5.2.4.5) activestorage (5.2.4.5)
actionpack (= 5.2.4.5) actionpack (= 5.2.4.5)
activerecord (= 5.2.4.5) activerecord (= 5.2.4.5)

View file

@ -240,7 +240,7 @@ class SessionsController < ApplicationController
# remember session_id for websocket logon # remember session_id for websocket logon
if current_user if current_user
config['session_id'] = session.id config['session_id'] = session.id.public_id
end end
config config

View file

@ -0,0 +1,5 @@
class ActiverecordSessionStore114 < ActiveRecord::Migration[5.2]
def change
ActionDispatch::Session::ActiveRecordStore.session_class.find_each(&:secure!)
end
end

View file

@ -19,7 +19,8 @@ To execute this manually, just paste the following into the browser console
app_version = AppVersion.event_data app_version = AppVersion.event_data
if @payload && @payload['session_id'] if @payload && @payload['session_id']
session = ActiveRecord::SessionStore::Session.find_by(session_id: @payload['session_id']) private_session_id = Rack::Session::SessionId.new(@payload['session_id']).private_id
session = ActiveRecord::SessionStore::Session.find_by(session_id: private_session_id)
end end
new_session_data = {} new_session_data = {}