aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/user.rb
Commit message (Collapse)AuthorAgeFilesLines
* has_secure_password: use `recovery_password` instead of `activation_token`bogdanvlviv2018-07-081-2/+2
| | | | | | Since we have `has_secure_token`, it is too confusing to use `_token` suffix with `has_secure_password`. Context https://github.com/rails/rails/pull/33307#discussion_r200807185
* Merge pull request #26764 from choncou/improve_has_secure_passwordRafael Mendonça França2018-06-281-1/+2
|\ | | | | | | Allow configurable attribute name on `#has_secure_password`
| * This addition will now allow configuring an attribute name for theUnathi Chonco2016-10-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | existing `#has_secure_password`. This can be useful when one would like to store some secure field as a digest, just like a password. The method still defaults to `password`. It now also allows using the same `#authenticate` method which now accepts a second argument for specifying the attribute to be authenticated, or will default to 'password`. A new method is also added for generating a new token for an attribute by calling `#regenerate_XXXX` where `XXXX` is the attribute name.
* | Use frozen string literal in activemodel/Kir Shatrov2017-07-161-0/+2
| |
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|/
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-1/+1
|
* automatically include ActiveModel::Validations when include ↵Aditya Kapoor2014-07-031-1/+0
| | | | ActiveModel::SecurePassword
* Rewrote the tests for has_secure_passwordGodfrey Chan2014-01-241-1/+1
|
* Updated tests for has_secure_password.Erich Menge2012-05-081-0/+3
|
* Added ActiveRecord::Base#has_secure_password (via ↵David Heinemeier Hansson2010-12-181-0/+8
ActiveModel::SecurePassword) to encapsulate dead-simple password usage with SHA2 encryption and salting