21 February 2017

Ruby on Rails | Secure password

To store a secure password we have do the following:
  • add gem 'bcrypt' in application gemfile
  • add has_secure_password method in model (user.rb)
  • add password_digest of type string in the table attribute (users)

No comments:

Post a Comment