diff --git a/app/controllers/web/account/passwords_controller.rb b/app/controllers/web/account/passwords_controller.rb index d1a1c7ba..9d12a000 100644 --- a/app/controllers/web/account/passwords_controller.rb +++ b/app/controllers/web/account/passwords_controller.rb @@ -10,12 +10,12 @@ def update if @token && !@token.expired? if @user.update_attributes(params[:user]) flash_success - redirect_to root_path + return redirect_to root_path end - else - flash_error - render :edit end + + flash_error + render :edit end end \ No newline at end of file