X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6290405336817cd282ad5062ce3fc3774ccf61e4..ce52ba1e6ae4e5ae5fb03e64bde9c7df1dcae4ff:/app/controllers/confirmations_controller.rb diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 7bbb3a093..cd22dc23c 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -30,6 +30,7 @@ class ConfirmationsController < ApplicationController user.email_valid = true flash[:notice] = gravatar_status_message(user) if gravatar_enable(user) user.save! + cookies.delete :_osm_anonymous_notes_count referer = safe_referer(params[:referer]) if params[:referer] pending_user = session.delete(:pending_user) @@ -90,7 +91,7 @@ class ConfirmationsController < ApplicationController flash[:error] = t ".unknown_token" end - redirect_to edit_account_path + redirect_to account_path end end @@ -117,7 +118,7 @@ class ConfirmationsController < ApplicationController end ## - # display a message about th current status of the gravatar setting + # display a message about the current status of the Gravatar setting def gravatar_status_message(user) if user.image_use_gravatar t "profiles.edit.gravatar.enabled"