Sha256: 1d2b55e5853a6d4212f29fe95c2ee2909ab4850fed471277db874c5bb256a409

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 Bytes

Contents

Passwd.current.config.tap do |config|
  # Hashing algorithm
  # Supported algorithm is :md5, :rmd160, :sha1, :sha256, :sha384 and :sha512
  # config.algorithm = :sha512

  # Number of hashed by stretching
  # Not stretching if specified nil or 0.
  # config.stretching = 100

  # Random generate password length
  # config.length = 10

  # Array of characters used for random password generation
  # config.characters = [("a".."z"), ("A".."Z"), ("0".."9")].map(&:to_a).flatten
end

# Session key for authentication
# Rails.application.config.passwd.session_key = :user_id

# Authentication Model Class
# Rails.application.config.passwd.auth_class = :User

# Redirect path when not signin
# Rails.application.config.passwd.signin_path = :signin_path

# Salt generation logic
# Rails.application.config.passwd.random_salt = proc { SecureRandom.uuid }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passwd-0.3.0 lib/generators/passwd/install/templates/passwd.rb