Module: ActiveModel::SecurePassword
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
|
Classes:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
| Defined in: | activemodel/lib/active_model/secure_password.rb |
Constant Summary
-
MAX_PASSWORD_LENGTH_ALLOWED =
# File 'activemodel/lib/active_model/secure_password.rb', line 10
BCrypt hash function can handle maximum 72 bytes, and if we pass password of length more than 72 bytes it ignores extra characters. Hence need to put a restriction on password length.
72
Class Attribute Summary
- .min_cost rw Internal use only
Class Method Summary
::ActiveSupport::Concern - Extended
| class_methods | Define class methods from given block. |
| included | Evaluate given block in context of base class, so that you can write class macros here. |
| prepended | Evaluate given block in context of base class, so that you can write class macros here. |
| append_features, prepend_features | |
Class Attribute Details
.min_cost (rw)
This method is for internal use only.
[ GitHub ]
# File 'activemodel/lib/active_model/secure_password.rb', line 13
attr_accessor :min_cost # :nodoc: