vendor/plugins/authlogic/lib/authlogic/session/base.rb
# Returns if the session is valid or not. Basically it means that a record could or could not be found. If the session is valid you will have a result when calling the "record" method. If it was unsuccessful
# you will not have a record.
Returns if the session is valid or not. Basically it means that a record could or could not be found. If the session is valid you will have a result when calling the "record" method. If it was unsuccessful
you will not have a record.
Returns if the session is valid or not . Basically it means that a record could or could not be found . If the session is valid you will have a result when calling the " record " method . If it was unsuccessful you will not have a record .
def valid?
        errors.clear
        self.attempted_record = nil
        before_validation
        new_session? ? before_validation_on_create : before_validation_on_update
        valid_credentials?
        validate
        if errors.empty?
          new_session? ? after_validation_on_create : after_validation_on_update
          after_validation
        else
          self.record = nil
        end
        save_record(attempted_record)
        self.attempted_record = nil
        errors.empty?
      end
def valid? errors . clear self . attempted_record = nil before_validation new_session? ? before_validation_on_create : before_validation_on_update valid_credentials? validate if errors . empty? new_session? ? after_validation_on_create : after_validation_on_update after_validation else self . record = nil end save_record ( attempted_record ) self . attempted_record = nil errors . empty? end
Returns if the session is valid or not.
Returns if the session is valid or not .