engines/adva_user/vendor/plugins/authentication/lib/authentication/remember_me.rb
def authenticate(user, key)
      return false unless valid_model? user
      return false unless key.to_s.length == 40

      conditions = ['id = ? AND remember_me = ?', user.id, hash_string(key)]
      conditions[0] << ' AND verified_at IS NOT NULL' if user.respond_to? :verified_at
      0 < user.class.count(:conditions => conditions)
    end
# Will test to see if the given remember me key is valid
Will test to see if the given remember me key is valid
Will test to see if the given remember me key is valid
def authenticate(user, key)
      return false unless valid_model? user
      return false unless key.to_s.length == 40
      conditions = ['id = ? AND remember_me = ?', user.id, hash_string(key)]
      conditions[0] << ' AND verified_at IS NOT NULL' if user.respond_to? :verified_at
      0 < user.class.count(:conditions => conditions)
    end
def authenticate ( user , key ) return false unless valid_model? user return false unless key . to_s . length == 40 conditions = [ 'id = ? AND remember_me = ?' , user . id , hash_string ( key ) ] conditions [ 0 ] << ' AND verified_at IS NOT NULL' if user . respond_to? :verified_at 0 < user . class . count ( :conditions => conditions ) end
Will test to see if the given remember me key is valid
Will test to see if the given remember me key is valid
user
key