* Bug fix when binding user from gitlab to zentao.

This commit is contained in:
dingguodong
2021-06-21 15:39:54 +08:00
parent 19eb443a06
commit 8235310ef9
+6
View File
@@ -118,6 +118,12 @@ class gitlab extends control
$user->providerID = $gitlabID;
$user->providerType = 'gitlab';
$this->dao->delete()
->from(TABLE_OAUTH)
->where('providerType')->eq($user->providerType)
->andWhere('providerID')->eq($user->providerID)
->exec();
foreach($users as $openID => $account)
{
if(!$account) continue;