X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/652dbf5044d3f7fdb5f7af1b7e8393c2a79246c6..ce7b651eb25473b74765ccb349f37ebd4ea6edfe:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 4128b61d4..9e2961df2 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -286,9 +286,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]