Skip to content

Commit

Permalink
fixed SQL injection vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Sanches committed Aug 13, 2015
1 parent 9afbf9e commit 93a9a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/curupira/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def new
end

def create
@user = User.find_by(params[:user])
@user = User.find_by(email: params[:user][:email])
if @user.present?
@user.deliver_reset_password_instructions!
redirect_to new_session_path, notice: "Verifique seu email para receber instruções de recuperação de senha"
Expand Down

0 comments on commit 93a9a77

Please sign in to comment.