git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 0823d3efc466e7e5ed0aa0cc8d0950c60b2db76b

Merge pull request #56 from cjolly/patch-1

mention has_secure_password in README.
Aman Gupta committed on 3/31/2013, 3:04:55 AM
Parent: 054888806bcede3049ccb38bf421ec7986973657
Parent: 91b34044e23625a6600866de5d7369d1a3c914e7

Files changed

README.mdchanged
README.mdView
@@ -33,8 +33,12 @@
3333 * Any 1.8 or 1.9 ruby on a BSD/OSX/Linux system with a compiler
3434
3535 ## How to use `bcrypt()` in your Rails application
3636
37+*Note*: Rails versions >= 3 ship with `ActiveModel::SecurePassword` which uses bcrypt-ruby.
38+`has_secure_password` [docs](http://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password)
39+implements a similar authentication strategy to the code below.
40+
3741 ### The _User_ model
3842
3943 require 'bcrypt'
4044

Built with git-ssb-web