From 078a9d8ee3058fe95e437b8597a22c97911e89c1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Oct 2013 21:27:39 +0100 Subject: [PATCH] Fix server error when user#reset_password called with no token --- app/controllers/user_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a3d1b6e67..a9006e82b 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -198,6 +198,8 @@ class UserController < ApplicationController flash[:error] = t 'user.reset_password.flash token bad' redirect_to :action => 'lost_password' end + else + render :text => "", :status => :bad_request end end -- 2.39.5