mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Clean up ruby code snippet
This commit is contained in:
@@ -26,7 +26,7 @@ the `authenticate` method.
|
|||||||
```ruby
|
```ruby
|
||||||
user = User.find_by(email: user_params[:email])
|
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!'
|
puts 'That is the correct password!'
|
||||||
else
|
else
|
||||||
puts 'That password did not match!'
|
puts 'That password did not match!'
|
||||||
|
|||||||
Reference in New Issue
Block a user