We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37d81e commit 0f14c60Copy full SHA for 0f14c60
system/Security/Security.php
@@ -354,7 +354,8 @@ private function getPostedToken(RequestInterface $request): ?string
354
$body = (string) $request->getBody();
355
356
if ($body !== '') {
357
- if (! empty($json = json_decode($body)) && json_last_error() === JSON_ERROR_NONE) {
+ $json = json_decode($body);
358
+ if (! empty($json) && json_last_error() === JSON_ERROR_NONE) {
359
return $json->{$this->config->tokenName} ?? null;
360
}
361
0 commit comments