Sha256: bebc136d9c0ac863897228e22ed450bcad9cbb8c48d20ee7f91d74b269d251d8

Contents?: true

Size: 1.73 KB

Versions: 14

Compression:

Stored size: 1.73 KB

Contents

require 'login_engine/authenticated_user'
require 'login_engine/authenticated_system'

module LoginEngine
 include AuthenticatedSystem # re-include the helper module

  #--
  # Define the configuration values. config sets the value of the
  # constant ONLY if it has not already been set, i.e. by the user in
  # environment.rb
  #++

  # Source address for user emails
  config :email_from, 'webmaster@your.company'

  # Destination email for system errors
  config :admin_email, 'webmaster@your.company'

  # Sent in emails to users
  config :app_url, 'http://localhost:3000/'

  # Sent in emails to users
  config :app_name, 'TestApp'

  # Email charset
  config :mail_charset, 'utf-8'

  # Security token lifetime in hours
  config :security_token_life_hours, 24

  # Two column form input
  config :two_column_input, true

  # Add all changeable user fields to this array.
  # They will then be able to be edited from the edit action. You
  # should NOT include the email field in this array.
  config :changeable_fields, [ 'firstname', 'lastname' ]

  # Set to true to allow delayed deletes (i.e., delete of record
  # doesn't happen immediately after user selects delete account,
  # but rather after some expiration of time to allow this action
  # to be reverted).
  config :delayed_delete, false

  # Default is one week
  config :delayed_delete_days, 7
  
  # the table to store user information in
  if ActiveRecord::Base.pluralize_table_names
    config :user_table, "users"
  else
    config :user_table, "user"
  end

  # controls whether or not email is used
  config :use_email_notification, true

  # Controls whether accounts must be confirmed after signing up
  # ONLY if this and use_email_notification are both true
  config :confirm_account, true

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
amrita2-2.0.0 sample/login_engine/lib/login_engine.rb
amrita2-2.0.1 sample/login_engine/lib/login_engine.rb
amrita2-2.0.2 sample/login_engine/lib/login_engine.rb
parlement-0.10 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.11 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.12 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.13 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.14 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.4 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.5 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.6 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.7 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.8 vendor/plugins/login_engine/lib/login_engine.rb
parlement-0.9 vendor/plugins/login_engine/lib/login_engine.rb