Fix server error when user#reset_password called with no token

This commit is contained in:
Tom Hughes 2013-10-15 21:27:39 +01:00
parent 1abb7bfa56
commit 078a9d8ee3

View file

@ -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