cookie path

This commit is contained in:
候学杰 2018-05-04 16:58:07 +08:00
parent e78cf5de0e
commit a0ed6da24d

View File

@ -44,7 +44,7 @@ class Authenticate
if ($code) { if ($code) {
$token = app('pd.auth')->getAccessToken($code); $token = app('pd.auth')->getAccessToken($code);
if (isset($token['access_token'])) { if (isset($token['access_token'])) {
setcookie(self::CookieName, $token['access_token'], strtotime($token['expired_at'])); setcookie(self::CookieName, $token['access_token'], strtotime($token['expired_at']), '/');
$qs = $request->getQueryString(); $qs = $request->getQueryString();
$params = explode('&', $qs); $params = explode('&', $qs);