summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/active_sessions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles/active_sessions_controller.rb')
-rw-r--r--app/controllers/profiles/active_sessions_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/profiles/active_sessions_controller.rb b/app/controllers/profiles/active_sessions_controller.rb
index d9ec3195fd1..e4cd5d65e1a 100644
--- a/app/controllers/profiles/active_sessions_controller.rb
+++ b/app/controllers/profiles/active_sessions_controller.rb
@@ -6,7 +6,9 @@ class Profiles::ActiveSessionsController < Profiles::ApplicationController
end
def destroy
- ActiveSession.destroy_with_public_id(current_user, params[:id])
+ # params[:id] can be either an Rack::Session::SessionId#private_id
+ # or an encrypted Rack::Session::SessionId#public_id
+ ActiveSession.destroy_with_deprecated_encryption(current_user, params[:id])
current_user.forget_me!
respond_to do |format|