X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c49e400aa36d116ded8188240961d1e88b172ccd..51af102c00f5dee8211c16f4d2d4705c8098bacc:/app/controllers/users_controller.rb diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 8e3f0a355..c2cbca4ae 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -151,7 +151,7 @@ class UsersController < ApplicationController def lost_password @title = t "users.lost_password.title" - if params[:email] + if request.post? user = User.visible.find_by(:email => params[:email]) if user.nil?