Fix server error when user#reset_password called with no token
This commit is contained in:
parent
1abb7bfa56
commit
078a9d8ee3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue