diff --git a/app/controllers/password_resets_controller.rb b/app/controllers/password_resets_controller.rb index c3e9565..322d232 100644 --- a/app/controllers/password_resets_controller.rb +++ b/app/controllers/password_resets_controller.rb @@ -7,7 +7,7 @@ def new end def create - @user = User.find_by_email(params[:email]) + @user = User.where("LOWER(email) = ?", params[:email]).first if @user @user.deliver_password_reset! flash[:notice] = "Instructions to reset your password have been emailed to you. " +