From: Tim Düsterhus Date: Sun, 29 May 2016 12:19:21 +0000 (+0200) Subject: Fix GithubAuthAction X-Git-Tag: 3.0.0_Beta_1~1578 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=903c645ff20a3f488ad724c189119ed5d1275392;p=GitHub%2FWoltLab%2FWCF.git Fix GithubAuthAction see 6901535c493de0acd63207fc9341e8b017c5f4e8 --- diff --git a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php index 2307e11a23..bbc267fea5 100644 --- a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php @@ -80,7 +80,7 @@ class GithubAuthAction extends AbstractAction { // check whether a user is connected to this github account $user = User::getUserByAuthData('github:'.$userData['id']); if (!$user->userID) { - $user = $this->getUser($data['access_token']); + $user = User::getUserByAuthData('github:'.$data['access_token']); $userEditor = new UserEditor($user); $userEditor->update(['authData' => 'github:'.$userData['id']]); }