Example #1
0
 /**
  * Get arr of UserInfo from
  * cache
  *
  * @throws CookieAuthException
  * @return object of type User
  */
 protected function getSidUser()
 {
     $arrResult = $this->Registry->Mongo->USERS->findOne(array('_id' => $this->uid));
     if (empty($arrResult)) {
         d('user not found with id ' . $this->uid);
         $this->logLoginError($this->uid, $this->sid, false, null, 'cookie');
         throw new CookieAuthException('no user by uid cookie');
     }
     return User::userFactory($this->Registry, $arrResult);
 }