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;