This commit is contained in:
liyuchun
2021-12-01 13:47:11 +08:00
6 changed files with 13 additions and 7 deletions
+2
View File
@@ -2168,6 +2168,8 @@ class gitlabModel extends model
{
$this->loadModel('action')->create('gitlabuser', $reponse->id, 'edited', '', $reponse->name);
/* Delete old bind. */
$this->dao->delete()->from(TABLE_OAUTH)->where('providerType')->eq('gitlab')->andWhere('providerID')->eq($gitlabID)->andWhere('openID')->eq($reponse->id)->andWhere('account')->ne($user->account)->exec();
/* Bind user. */
if($user->account && $changeBind)
{