1 require 'login_engine/authenticated_user'
2 require 'login_engine/authenticated_system'
5 include AuthenticatedSystem # re-include the helper module
8 # Define the configuration values. config sets the value of the
9 # constant ONLY if it has not already been set, i.e. by the user in
13 # Source address for user emails
14 config :email_from, 'webmaster@your.company'
16 # Destination email for system errors
17 config :admin_email, 'webmaster@your.company'
19 # Sent in emails to users
20 config :app_url, 'http://localhost:3000/'
22 # Sent in emails to users
23 config :app_name, 'TestApp'
26 config :mail_charset, 'utf-8'
28 # Security token lifetime in hours
29 config :security_token_life_hours, 24
31 # Two column form input
32 config :two_column_input, true
34 # Add all changeable user fields to this array.
35 # They will then be able to be edited from the edit action. You
36 # should NOT include the email field in this array.
37 config :changeable_fields, [ 'firstname', 'lastname' ]
39 # Set to true to allow delayed deletes (i.e., delete of record
40 # doesn't happen immediately after user selects delete account,
41 # but rather after some expiration of time to allow this action
43 config :delayed_delete, false
46 config :delayed_delete_days, 7
48 # the table to store user information in
49 if ActiveRecord::Base.pluralize_table_names
50 config :user_table, "users"
52 config :user_table, "user"
55 # controls whether or not email is used
56 config :use_email_notification, true
58 # Controls whether accounts must be confirmed after signing up
59 # ONLY if this and use_email_notification are both true
60 config :confirm_account, true