* Fix bug#16916

This commit is contained in:
zenggang
2021-12-01 05:40:22 +00:00
parent 9a5c01de3f
commit deb6809979
+2
View File
@@ -2167,6 +2167,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)
{