* Adjust code.
This commit is contained in:
+14
-1
@@ -97,7 +97,7 @@ class gitlabModel extends model
|
||||
{
|
||||
$api = rtrim($gitlab->url, '/') . '/api/v4/users?private_token=' . $gitlab->token;
|
||||
$response = json_decode(commonModel::http($api));
|
||||
|
||||
|
||||
if (!$response) return array();
|
||||
$users = array();
|
||||
|
||||
@@ -194,6 +194,19 @@ class gitlabModel extends model
|
||||
return $gitlab_url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* check if gitlab id exists
|
||||
*
|
||||
* @param string
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function checkAccountId($openID,$providerID)
|
||||
{
|
||||
return $this->dao->select('openID')->from(TABLE_OAUTH)->where('openID')->eq($openID)->andWhere('providerID')->eq($providerID)->fetch('openID');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hooks.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user