* Merge gitea, gogs, gitlab methods to pipeline model.

This commit is contained in:
caoyanyi
2023-12-16 16:58:28 +08:00
parent 8154161fa2
commit 8a61570fc5
4 changed files with 5 additions and 39 deletions
-17
View File
@@ -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.
*