Sha256: 2a66cb430e1fbd7e9d39f2bfb9b2c94c1c5b1d264bf9e1ff7ced3a979739647c
Contents?: true
Size: 1.79 KB
Versions: 6
Compression:
Stored size: 1.79 KB
Contents
Ecm::UserArea.configure do |config| # Allow/disallow new user registrations. # # default: config.enable_registrations = false # config.enable_registrations = false # Set the base controller # # Default: config.base_controller = 'FrontendController' # config.base_controller = 'FrontendController' # Set the base mailer # # Default: config.base_mailer = 'ApplicationMailer' # config.base_mailer = 'ApplicationMailer' # Settings this to true forces the after_sign_in_url after sign in. # If set to false, redirect to previous location will happen if # existent. # # Default: config.force_after_sign_in_url = false # config.force_after_sign_in_url = false # This is the block, that will be passed to the acts_as_authentic call # in the user model. # # Default: config.acts_as_authentic_options = ->(c) do # config.crypto_provider = Authlogic::CryptoProviders::BCrypt # config.login_field = :email # end # config.acts_as_authentic_options = lambda do |c| c.crypto_provider = Authlogic::CryptoProviders::BCrypt c.login_field = :email # How paranoid are you? # c.perishable_token_valid_for = 24.hours end # Application name for mail delivery. # # Default: config.application_name = Rails.application.class.name.deconstantize # config.application_name = Rails.application.class.name.deconstantize # E-Mail sender address for password reset emails. # # Default: config.email_from_address = 'info@example.com' # config.email_from_address = lambda do ENV['ECM_USER_AREA_FROM_ADDRESS'] || 'info@example.com' end # Allow/disallow users to remove their own accounts. # # default: config.allow_users_to_destroy_self = true # config.allow_users_to_destroy_self = true end
Version data entries
6 entries across 6 versions & 1 rubygems