]> git.openstreetmap.org Git - rails.git/commitdiff
Fix server error when user#reset_password called with no token
authorTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 20:27:39 +0000 (21:27 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 20:27:39 +0000 (21:27 +0100)
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