from the rails authlogic sample application:
Make sure you have a model that you will authenticate with. Since we use the User model, it should look something like:
class User < ActiveRecord::Base acts_as_authentic do |c| c.my_config_option = my_value # for available options see documentation in: Authlogic::ActsAsAuthentic end # block optional end
It should be noted here that this attempt to take care of all grunt authentications, including checking your username, email address, password and field token. You can easily disable this with the configuration. Example: c.validate_email_field = false. See Attribute Authlogic :: ActsAsAuthentic modules in the documentation for details.
Note:
You can easily disable this using the configuration. Example: c.validate_email_field = false.
Hope this helps.
Source: https://github.com/binarylogic/authlogic_example
source share