aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/secure_password.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12635 from mperham/4-0-stableGuillermo Iguaran2013-10-241-1/+0
| | | | Allow any version of BCrypt
* Use bcrypt's public cost attr, not internal constantT.J. Schuck2013-10-101-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 WindowsT.J. Schuck2013-09-231-3/+3
|
* Add :nodoc: to ActiveModel::SecurePassword.min_costGaurish Sharma2013-08-291-1/+3
| | | | [ci skip]
* Fix secure_password password_confirmation validationsVladimir Kiselev2013-07-241-2/+8
|
* bcrypt-ruby stable is 3.1Burkhard Vogel-Kreykenbohm2013-07-171-3/+3
|
* Fixing Issue #11083Akshay Khole2013-06-251-1/+1
| | | | Removing other occurrences of `the` appearing twice
* Fix regression in has_secure_password.Phil Calvin2013-05-301-4/+3
| | | | If the confirmation was blank, but the password wasn't, it would still save.
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-011-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 rdocSam Ruby2013-04-021-7/+7
|
* Remove exception variable from rescue blockCarlos Antonio da Silva2013-03-221-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 failsrobertomiranda2013-03-211-2/+7
|
* `has_secure_password` is not invalid when assigning empty Strings.Yves Senn2013-03-041-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 Iguaran2013-01-181-2/+2
| | | | | This reverts commit 637a7d9d357a0f3f725b0548282ca8c5e7d4af4a, reversing changes made to 5937bd02dee112646469848d7fe8a8bfcef5b4c1.
* User Rails 4 find_byrobertomiranda2013-01-181-2/+2
|
* Initialize #min_cost to avoid warning in Ruby 2.0Carlos Antonio da Silva2012-11-171-2/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-171-0/+4
|\ | | | | | | | | Conflicts: actionpack/lib/action_dispatch/routing/redirection.rb
| * add details on password confirmation used with has_secure_passwordDaniel Lopes2012-11-131-0/+4
| |
* | Use BCrypt's MIN_COST in the test environment for speedier testsTrevor Turk2012-11-141-1/+4
|/
* remove non-breaking spaces [ci skip]Francesco Rodriguez2012-10-181-3/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-08-041-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 Rodriguez2012-07-291-1/+1
| |
| * update ActiveModel::SecurePassword docs [ci skip]Francesco Rodriguez2012-07-291-18/+38
| |
* | has_secure_password should not raise a 'digest missing' error if the calling ↵Robby Grossman2012-07-311-2/+2
|/ | | | class has specified for validations to be skipped.
* has_secure_password shouldn't validate password_digest. It should also take ↵Erich Menge2012-05-081-5/+10
| | | | options to turn validations off.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-04-251-1/+2
|\
| * Correct documentation of SecurePasswordOscar Del Ben2012-04-241-1/+2
| |
* | Merge pull request #5966 from oscardelben/fix_secure_password_setterJosé Valim2012-04-241-1/+1
|\ \ | | | | | | Fix secure_password setter
| * | Fix secure_password setterOscar Del Ben2012-04-241-1/+1
| |/
* / Refactor SecurePassword#authenticateOscar Del Ben2012-04-241-5/+1
|/
* fix example code in documentation for has_secure_passwordAaron Beckerman2012-01-281-1/+1
|
* fix a typo and slightly reword has_secure_password commentVijay Dev2011-10-171-2/+2
|
* Add comments about bcrypt-ruby gem to SecurePasswordGuillermo Iguaran2011-09-031-0/+6
|
* Remove hard dependency on bcrypt.Guillermo Iguaran2011-09-021-2/+3
|
* Remove superfluous whitespace from ActiveModel::SecurePassword Daniel Schierbeck2011-05-221-1/+1
| | | Only one space is needed, yo!
* bcrypt will encrypt anything, so validate_presence_of would not catch nil / ↵Aaron Patterson2011-04-141-1/+3
| | | | blank passwords. Thank you to Aleksander Kamil Modzelewski for reporting this
* Declaring the attr_accessor for password_confirmation is not necessaryBrian Cardarella2011-04-141-2/+1
| | | | as the confirmation validation already adds that attr_accessor
* Override attributes_protected_by_default when has_secure_password is called.Tsutomu Kuroda2011-02-091-2/+6
| | | | | | | attr_protected should not be called, because it nullifies the mass assignment protection that has been set by attr_accessible. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Instance methods shouldnt be added until you actually call has_secure_passwordDavid Heinemeier Hansson2010-12-291-11/+15
|
* Remove require AS::Concern from places where is already inSantiago Pastorino2010-12-191-1/+0
|
* Remove weak_passwords list and the length/strong password validator, leave ↵Santiago Pastorino2010-12-191-31/+6
| | | | that up to the programmer
* Use class_attribute to ensure weak_passwords are inheritable.José Valim2010-12-191-18/+8
|
* Add set_weak_passwords call in alignment with set_table_name.Mikel Lindsaar2010-12-191-5/+11
|
* Fix incorrect docsMikel Lindsaar2010-12-191-3/+1
|
* Added ability to specify which passwords you want as weak passwordsMikel Lindsaar2010-12-191-6/+25
|
* 'unsecure' => 'insecure'José Valim2010-12-191-1/+1
|
* Make password messages translatable.José Valim2010-12-191-2/+2
|
* Add missing require and remove extra module.José Valim2010-12-191-20/+19
|
* Avoid warnings and fix small typo on SecurePassword.José Valim2010-12-191-3/+3
|
* BCrypt does its own salting, lovely!David Heinemeier Hansson2010-12-181-12/+11
|