X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20f08f2543aebd1be5916487761828a459a1b1f7..49cde0e9013848d2d3bd33f19fe106296505b6b2:/app/controllers/confirmations_controller.rb diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index e54fa4a5d..06e7c8e7d 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -93,13 +93,13 @@ class ConfirmationsController < ApplicationController current_user.tokens.delete_all session[:user] = current_user.id session[:fingerprint] = current_user.fingerprint - redirect_to edit_account_path elsif token flash[:error] = t "confirmations.confirm_email.failure" - redirect_to edit_account_path else flash[:error] = t "confirmations.confirm_email.unknown_token" end + + redirect_to edit_account_path end end