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