BrainQuay.com
Computer Science Knowledge and Problem Solving
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment