private static function accountExists($userProfile, $provider) { $user = users::findFirst(array(array('oauthUID' => $userProfile->identifier, 'oauthProvider' => $provider))); return $user->uid; }
public function getUserWithEmail($email) { return users::findFirst(array(array("email" => (string) $email))); }