Module: ActiveModel::SecurePassword

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_model/secure_password.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethodsOnActivation

Constant Summary collapse

MAX_PASSWORD_LENGTH_ALLOWED =

BCrypt hash function can handle maximum 72 characters, and if we pass password of length more than 72 characters it ignores extra characters. Hence need to put a restriction on password length.

72

Class Attribute Summary collapse

Class Attribute Details

.min_costObject

:nodoc:


11
12
13
# File 'lib/active_model/secure_password.rb', line 11

def min_cost
  @min_cost
end