X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d85621c7aea365b1548d5301af292528dd8b329d..ee53b7a298e75ac4c75866d6edea0a2611bdb663:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index b6fc79b25..82373c90a 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -268,7 +268,7 @@ class UserController < ApplicationController def logout @title = t "user.logout.title" - if params[:session] == request.session_options[:id] + if params[:session] == session.id if session[:token] token = UserToken.find_by(:token => session[:token]) token.destroy if token