예제 #1
0
파일: OAuth2.php 프로젝트: burtay/bdApi
 public function getUserDetails($nameOrEmail)
 {
     $user = $this->_model->getUserModel()->getUserByNameOrEmail($nameOrEmail);
     if (empty($user)) {
         // user not found
         return false;
     }
     return array('user_id' => $user['user_id'], 'scope' => bdApi_Template_Helper_Core::getInstance()->scopeJoin($this->_model->getSystemSupportedScopes()));
 }