Skip to content

Commit

Permalink
Revert "Bugfix."
Browse files Browse the repository at this point in the history
This reverts commit fd24c8b.
  • Loading branch information
overtrue committed Jul 28, 2020
1 parent fd24c8b commit 5c99558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/OAuthAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function handle($request, Closure $next, $account = 'default', $scope = n

if (!$session) {
if ($request->has('code')) {
session([$sessionKey => $officialAccount->oauth->userFromCode($request->get('code')) ?? []]);
session([$sessionKey => $officialAccount->oauth->user() ?? []]);
$isNewSession = true;

event(new WeChatUserAuthorized(session($sessionKey), $isNewSession, $account));
Expand Down

0 comments on commit 5c99558

Please sign in to comment.