Skip to content

Commit 72252ba

Browse files
committed
Bugfix #67
1 parent d8d2113 commit 72252ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle($request, Closure $next, $scopes = null)
5555
}
5656

5757
if (!session('wechat.oauth_user') || $this->needReauth($scopes)) {
58-
if ($request->has('state') && $request->has('code')) {
58+
if ($request->has('code')) {
5959
session(['wechat.oauth_user' => $this->wechat->oauth->user()]);
6060
$isNewSession = true;
6161

0 commit comments

Comments
 (0)