* Merge gitea, gogs, gitlab methods to pipeline model.
This commit is contained in:
@@ -219,23 +219,6 @@ class gogsModel extends model
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Gogs id list by user account.
|
||||
*
|
||||
* @param string $account
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getListByAccount($account = '')
|
||||
{
|
||||
if(!$account) $account = $this->app->user->account;
|
||||
|
||||
return $this->dao->select('providerID,openID')->from(TABLE_OAUTH)
|
||||
->where('providerType')->eq('gogs')
|
||||
->andWhere('account')->eq($account)
|
||||
->fetchPairs('providerID');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get matched gogs users.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user