From e782f0ba1970d782cd6c6a9c6ca2b68d3cf4a236 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 5 Feb 2019 11:39:38 -0600 Subject: [PATCH] Clean up ruby code snippet --- rails/secure-passwords-with-rails-and-bcrypt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rails/secure-passwords-with-rails-and-bcrypt.md b/rails/secure-passwords-with-rails-and-bcrypt.md index 1495f1c..2ece0f1 100644 --- a/rails/secure-passwords-with-rails-and-bcrypt.md +++ b/rails/secure-passwords-with-rails-and-bcrypt.md @@ -26,7 +26,7 @@ the `authenticate` method. ```ruby user = User.find_by(email: user_params[:email]) -if(user.authenticate(user_params[:password])) +if user.authenticate(user_params[:password]) puts 'That is the correct password!' else puts 'That password did not match!'