authlogic custom conditions for authentication – Josh Software
authlogic custom conditions for authentication – Josh Software >To Add custom conditions to authlogic finders first of all we need to override authlogic find_by_login method. class UserSession < Authlogic::Session::Base after_validation :check_if_verified find_by_login_method :find_by_login_and_deleted_method end Then we need to define overridden method inside User model class User < ActiveRecord::Base acts_as_authentic def self.find_by_login_and_deleted_method(login) …
authlogic custom conditions for authentication – Josh Software Read More »