This commit is contained in:
Kekskurse 2019-05-16 17:35:15 +02:00
parent 57e44d343f
commit c34e8651be

View file

@ -58,7 +58,10 @@ class oAuthController extends Controller
} }
$appCode = AppCode::createCode($access); $appCode = AppCode::createCode($access);
$returnUrl.="code=".$appCode->code."&state=".$request->input("state"); $returnUrl.="code=".$appCode->code;
if($request->input("state", null) !== null) {
$returnUrl .= "&state=".$request->input("state");
}
Log::debug("Return URL: ".$returnUrl); Log::debug("Return URL: ".$returnUrl);