X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02e186ee5b1162cf726ccb09929a9cbf80e2efbe..85e99d3127e5febcf4698c9d2576f653775af787:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 97b0de73c..283e11936 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -272,9 +272,9 @@ class UserController < ApplicationController if token token.destroy end - session[:token] = nil + session.delete(:token) end - session[:user] = nil + session.delete(:user) session_expires_automatically if params[:referer] redirect_to params[:referer]