X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ddd12b03e1e7e1a674350a1eb98d90a2155df26d..85e99d3127e5febcf4698c9d2576f653775af787:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index fcf6526eb..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] @@ -522,6 +522,6 @@ private # this is necessary otherwise going to the user terms page, when # having not agreed already would cause an infinite redirect loop. # it's .now so that this doesn't propagate to other pages. - flash.now[:showing_terms] = true + flash.now[:skip_terms] = true end end