Fix GithubAuthAction
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 29 May 2016 12:19:21 +0000 (14:19 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 29 May 2016 12:19:21 +0000 (14:19 +0200)
see 6901535c493de0acd63207fc9341e8b017c5f4e8

wcfsetup/install/files/lib/action/GithubAuthAction.class.php

index 2307e11a235ca1d9ae5096311254e80b4ef753dd..bbc267fea5a73ff80734886c8a1f70f5d575aaed 100644 (file)
@@ -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']]);
                        }