]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/confirmations_controller.rb
Simplify step mapping function
[rails.git] / app / controllers / confirmations_controller.rb
index 7bbb3a0937b538ef95abffd014c58bab7443418c..cd22dc23c66d61daad90fb4e8772b192c1f87d1b 100644 (file)
@@ -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"