Module: Authenticate::Model::DbPassword::ClassMethods

Defined in:
lib/authenticate/model/db_password.rb

Instance Method Summary collapse

Instance Method Details

#crypto_providerObject

We only have one crypto provider at the moment, but look up the provider in the config.



63
64
65
# File 'lib/authenticate/model/db_password.rb', line 63

def crypto_provider
  Authenticate.configuration.crypto_provider || Authenticate::Crypto::BCrypt
end

#password_lengthObject



67
68
69
# File 'lib/authenticate/model/db_password.rb', line 67

def password_length
  Authenticate.configuration.password_length
end