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

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

Overview

Class methods for database password management.

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.


56
57
58
# File 'lib/authenticate/model/db_password.rb', line 56

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

#password_lengthObject


60
61
62
# File 'lib/authenticate/model/db_password.rb', line 60

def password_length
  Authenticate.configuration.password_length
end