]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Fix server error when user#reset_password called with no token
[rails.git] / app / controllers / user_controller.rb
index a3d1b6e6757511742311cf82ae535b924f9ccd3f..a9006e82b334e6edfe19ae24fad0dcfdbf8d9e78 100644 (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