]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/confirmations_controller.rb
Refactor the account edit/update pages out into a separate accounts controller
[rails.git] / app / controllers / confirmations_controller.rb
index 2a00a49b0446a01654a777df9c09a4ad06525c9e..bcb4c1617d25ca3a6ac8df8d6ac8b2b2836b8653 100644 (file)
@@ -93,10 +93,10 @@ class ConfirmationsController < ApplicationController
         current_user.tokens.delete_all
         session[:user] = current_user.id
         session[:fingerprint] = current_user.fingerprint
-        redirect_to user_account_path(current_user)
+        redirect_to edit_account_path
       elsif token
         flash[:error] = t "confirmations.confirm_email.failure"
-        redirect_to user_account_path(token.user)
+        redirect_to edit_account_path
       else
         flash[:error] = t "confirmations.confirm_email.unknown_token"
       end