Added the RoR Login-Engine and activated it on the site.
[selectricity-live] / vendor / plugins / login_engine / lib / login_engine.rb
1 require 'login_engine/authenticated_user'
2 require 'login_engine/authenticated_system'
3
4 module LoginEngine
5  include AuthenticatedSystem # re-include the helper module
6
7   #--
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
10   # environment.rb
11   #++
12
13   # Source address for user emails
14   config :email_from, 'webmaster@your.company'
15
16   # Destination email for system errors
17   config :admin_email, 'webmaster@your.company'
18
19   # Sent in emails to users
20   config :app_url, 'http://localhost:3000/'
21
22   # Sent in emails to users
23   config :app_name, 'TestApp'
24
25   # Email charset
26   config :mail_charset, 'utf-8'
27
28   # Security token lifetime in hours
29   config :security_token_life_hours, 24
30
31   # Two column form input
32   config :two_column_input, true
33
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' ]
38
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
42   # to be reverted).
43   config :delayed_delete, false
44
45   # Default is one week
46   config :delayed_delete_days, 7
47   
48   # the table to store user information in
49   if ActiveRecord::Base.pluralize_table_names
50     config :user_table, "users"
51   else
52     config :user_table, "user"
53   end
54
55   # controls whether or not email is used
56   config :use_email_notification, true
57
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
61
62 end

Benjamin Mako Hill || Want to submit a patch?