Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | has_secure_password: use `recovery_password` instead of `activation_token` | bogdanvlviv | 2018-07-08 | 1 | -6/+6 |
| | | | | | | 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_password | Rafael Mendonça França | 2018-06-28 | 1 | -55/+48 |
|\ | | | | | | | Allow configurable attribute name on `#has_secure_password` | ||||
| * | Remove method for regenerating a token, and update `#authenticate`. | Unathi Chonco | 2016-10-12 | 1 | -40/+16 |
| | | | | | | | | | | | | | | This change now creates a method `#authenticate_XXX` where XXX is the configured attribute name on `#has_secure_password`. `#authenticate` is now an alias to this method when the attribute name is the default 'password' | ||||
| * | This addition will now allow configuring an attribute name for the | Unathi Chonco | 2016-10-12 | 1 | -40/+57 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Talk about bytes not characters | Rafael Mendonça França | 2017-07-31 | 1 | -3/+3 |
| | | | | | | | | | | | | [ci skip] Closes #30012 | ||||
* | | Use frozen string literal in activemodel/ | Kir Shatrov | 2017-07-16 | 1 | -0/+2 |
| | | |||||
* | | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
|/ | |||||
* | applies new string literal convention in activemodel/lib | Xavier Noria | 2016-08-06 | 1 | -1/+1 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Fix spelling error in has_secure_password documentation [ci skip] | Melanie Gilman | 2015-03-03 | 1 | -1/+1 |
| | |||||
* | Remove attributes_protected_by_default reference, since ↵ | robertomiranda | 2015-01-09 | 1 | -7/+0 |
| | | | | MassAssignmentSecurity was removed from ActiveModel f8c9a4d3e88181 | ||||
* | Use more semantic method to check password | Rohit Arondekar | 2014-12-30 | 1 | -1/+1 |
| | |||||
* | use `allow_blank` option instead | Kuldeep Aggarwal | 2014-09-14 | 1 | -1/+1 |
| | |||||
* | Allow password to contain spaces only. | Yevhene Shemet | 2014-08-06 | 1 | -2/+2 |
| | |||||
* | Only automatically include validations when enabled | Godfrey Chan | 2014-07-02 | 1 | -1/+2 |
| | | | | This is a follow up to #16024. | ||||
* | automatically include ActiveModel::Validations when include ↵ | Aditya Kapoor | 2014-07-03 | 1 | -0/+1 |
| | | | | ActiveModel::SecurePassword | ||||
* | Edit pass on `has_secure_password` documentation [ci skip] | Godfrey Chan | 2014-06-14 | 1 | -5/+6 |
| | |||||
* | [ci skip] Update #has_secure_password docs | Akshay Vishnoi | 2014-06-14 | 1 | -6/+9 |
| | |||||
* | SecurePassword - Validate password must be less than or equal to 72 | Akshay Vishnoi | 2014-06-14 | 1 | -0/+6 |
| | | | | See #14591, Reason - BCrypt hash function can handle maximum 72 characters. | ||||
* | Merge pull request #15154 from msgehard/move_password_field | Rafael Mendonça França | 2014-05-20 | 1 | -2/+2 |
|\ | | | | | Put attr_reader in with all of the other instance methods | ||||
| * | Put attr_reader in with all of the other instance methods | Mike Gehard | 2014-05-17 | 1 | -2/+2 |
| | | | | | | | | This makes the grouping make a little more sense | ||||
* | | Let others know why this code is here | Mike Gehard | 2014-05-18 | 1 | -0/+1 |
|/ | | | | [ci skip] | ||||
* | Bump version of bcrypt gem | T.J. Schuck | 2014-02-25 | 1 | -4/+4 |
| | |||||
* | Some minor fixes | Godfrey Chan | 2014-01-24 | 1 | -2/+2 |
| | |||||
* | Got all the new tests passing | Godfrey Chan | 2014-01-24 | 1 | -10/+8 |
| | |||||
* | Restored the ability to clear the password with user.password= nil (see the ↵ | Godfrey Chan | 2014-01-24 | 1 | -1/+3 |
| | | | | docs) | ||||
* | Use a better method name to check the requirement of password confirmation | Carlos Antonio da Silva | 2014-01-07 | 1 | -5/+5 |
| | | | | | Also improve changelog entries related to secure password to proper highlight. | ||||
* | Fix few typos and improve markup at some levels | Robin Dupret | 2013-12-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #12635 from mperham/4-0-stable | Guillermo Iguaran | 2013-10-24 | 1 | -1/+0 |
| | | | | Allow any version of BCrypt | ||||
* | Use bcrypt's public cost attr, not internal constant | T.J. Schuck | 2013-10-10 | 1 | -1/+1 |
| | | | | | | | | See: - https://github.com/codahale/bcrypt-ruby/pull/63 - https://github.com/codahale/bcrypt-ruby/pull/64 - https://github.com/codahale/bcrypt-ruby/pull/65 | ||||
* | bcrypt-ruby v3.1.2 supports Ruby 2.0 on Windows | T.J. Schuck | 2013-09-23 | 1 | -3/+3 |
| | |||||
* | Add :nodoc: to ActiveModel::SecurePassword.min_cost | Gaurish Sharma | 2013-08-29 | 1 | -1/+3 |
| | | | | [ci skip] | ||||
* | Fix secure_password password_confirmation validations | Vladimir Kiselev | 2013-07-24 | 1 | -2/+8 |
| | |||||
* | bcrypt-ruby stable is 3.1 | Burkhard Vogel-Kreykenbohm | 2013-07-17 | 1 | -3/+3 |
| | |||||
* | Fixing Issue #11083 | Akshay Khole | 2013-06-25 | 1 | -1/+1 |
| | | | | Removing other occurrences of `the` appearing twice | ||||
* | Fix regression in has_secure_password. | Phil Calvin | 2013-05-30 | 1 | -4/+3 |
| | | | | If the confirmation was blank, but the password wasn't, it would still save. | ||||
* | Convert ActiveModel to 1.9 hash syntax. | Patrick Robertson | 2013-05-01 | 1 | -1/+1 |
| | | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ). | ||||
* | Prefer find_by over dynamic finders in rdoc | Sam Ruby | 2013-04-02 | 1 | -7/+7 |
| | |||||
* | Remove exception variable from rescue block | Carlos Antonio da Silva | 2013-03-22 | 1 | -2/+2 |
| | | | | | Just raising from the rescue block will re-raise the exception, so the variable is not necessary. | ||||
* | Change Standard error when is required bcrypt-ruby and fails | robertomiranda | 2013-03-21 | 1 | -2/+7 |
| | |||||
* | `has_secure_password` is not invalid when assigning empty Strings. | Yves Senn | 2013-03-04 | 1 | -2/+8 |
| | | | | | | | | | | Closes #9535. With 692b3b6 the `password=` setter does no longer set blank passwords. This triggered validation errors when assigning empty Strings to `password` and `password_confirmation`. This patch only sets the confirmation if it is not `blank?`. | ||||
* | Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find-by" | Guillermo Iguaran | 2013-01-18 | 1 | -2/+2 |
| | | | | | This reverts commit 637a7d9d357a0f3f725b0548282ca8c5e7d4af4a, reversing changes made to 5937bd02dee112646469848d7fe8a8bfcef5b4c1. | ||||
* | User Rails 4 find_by | robertomiranda | 2013-01-18 | 1 | -2/+2 |
| | |||||
* | Initialize #min_cost to avoid warning in Ruby 2.0 | Carlos Antonio da Silva | 2012-11-17 | 1 | -2/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-17 | 1 | -0/+4 |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_dispatch/routing/redirection.rb | ||||
| * | add details on password confirmation used with has_secure_password | Daniel Lopes | 2012-11-13 | 1 | -0/+4 |
| | | |||||
* | | Use BCrypt's MIN_COST in the test environment for speedier tests | Trevor Turk | 2012-11-14 | 1 | -1/+4 |
|/ | |||||
* | remove non-breaking spaces [ci skip] | Francesco Rodriguez | 2012-10-18 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-08-04 | 1 | -17/+37 |
|\ | | | | | | | | | | | Conflicts: activemodel/lib/active_model/secure_password.rb activerecord/lib/active_record/associations/collection_proxy.rb | ||||
| * | update ActiveModel::Validator docs [ci skip] | Francesco Rodriguez | 2012-07-29 | 1 | -1/+1 |
| | |