From 8235310ef9aae4b4a4121c4a247ef7362bdd427d Mon Sep 17 00:00:00 2001 From: dingguodong Date: Mon, 21 Jun 2021 15:39:54 +0800 Subject: [PATCH] * Bug fix when binding user from gitlab to zentao. --- module/gitlab/control.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 0649511f5f..2fd9c19f64 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -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;