Sha256: d9879eee3097906537565631ee90232a3edf03389b753759748f4dd61d71be49

Contents?: true

Size: 938 Bytes

Versions: 4

Compression:

Stored size: 938 Bytes

Contents

Janus.config do |config|
  config.contact_email = "contact@some-example-domain.com"

  # DatabaseAuthenticatable
  config.authentication_keys = [:email]

  # bcrypt:
  config.encryptor = :bcrypt
  config.stretches = Rails.env.test? ? 1 : 10
  config.pepper = <%= if Rails.application.respond_to?(:secrets)
                        "Rails.application.secrets[:secret_pepper]"
                      else
                        SecureRandom.hex(64).inspect
                      end %>

  # scrypt:
  # config.encryptor = :scrypt
  # config.scrypt_options = { :max_time => 0.25 }

  # Confirmable
  # config.confirmation_key = :confirm_token

  # Rememberable
  # config.remember_for = 1.year
  # config.extend_remember_period = false

  # RemoteAuthenticatable
  # config.remote_authentication_key = :remote_token

  # TokenAuthenticatable
  # config.token_authentication_key = :auth_token
  # self.reusable_authentication_token = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
janus-0.10.1 lib/generators/templates/janus.rb
janus-0.10.0 lib/generators/templates/janus.rb
janus-0.9.1 lib/generators/templates/janus.rb
janus-0.9.0 lib/generators/templates/janus.rb