Module: ActiveModel::SecurePassword
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveRecord::SecurePassword
- Defined in:
- activemodel/lib/active_model/secure_password.rb
Defined Under Namespace
Modules: ClassMethods Classes: InstanceMethodsOnActivation
Constant Summary collapse
- MAX_PASSWORD_LENGTH_ALLOWED =
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 collapse
-
.min_cost ⇒ Object
:nodoc:.
Method Summary
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
Class Attribute Details
.min_cost ⇒ Object
:nodoc:
13 14 15 |
# File 'activemodel/lib/active_model/secure_password.rb', line 13 def min_cost @min_cost end |