X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/a12d4f62752f546f57421244e370e79965706ffb..f7aee769411a893c1059c529a220c0d25c72974f:/vendor/plugins/login_engine/lib/login_engine.rb diff --git a/vendor/plugins/login_engine/lib/login_engine.rb b/vendor/plugins/login_engine/lib/login_engine.rb new file mode 100644 index 0000000..6164603 --- /dev/null +++ b/vendor/plugins/login_engine/lib/login_engine.rb @@ -0,0 +1,62 @@ +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