X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d797de431716252ac03ad390b3233c91fa3c50b2..b0288b83bb437bbfc0deb325cca142066dc9848b:/app/controllers/confirmations_controller.rb?ds=inline diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 2a00a49b0..bcb4c1617 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -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