diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 38c505f07c..941a28efae 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1501,7 +1501,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') $name = ''; $nameOAuth = $oauth2->getUserName($accessToken); - $userParam = \json_decode($request->getParam('user', '{}'), true); // only valid for Apple OAuth2 which returns a user param in the request + $userParam = $request->getParam('user'); if (!empty($nameOAuth)) { $name = $nameOAuth; } elseif ($userParam !== null) {