Module: Authlogic::Session::Password

Included in:
Base
Defined in:
lib/authlogic/session/password.rb

Overview

Handles authenticating via a traditional username and password.

Defined Under Namespace

Modules: Config, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
# File 'lib/authlogic/session/password.rb', line 5

def self.included(klass)
  klass.class_eval do
    extend Config
    include InstanceMethods
    validate :validate_by_password, :if => :authenticating_with_password?
    
    class << self
      attr_accessor :configured_password_methods
    end
  end
end