Skip to content

Commit

Permalink
fix body as string
Browse files Browse the repository at this point in the history
  • Loading branch information
fiste788 committed Mar 27, 2024
1 parent c0e904a commit e1f0726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .cpanel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
deployment:
tasks:
- composer install --no-scripts
- export DEPLOYPATH=/home/fantaman/dev/
- cd $DEPLOYPATH && composer install --no-scripts
6 changes: 2 additions & 4 deletions src/Service/WebauthnService.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ public function signin(
);

// Load the data
/** @var array<string, mixed> $body */
$body = $request->getParsedBody();
$body = $request->getBody()->getContents();
$publicKeyCredential = $this->serializer->deserialize(
$body,
PublicKeyCredential::class,
Expand Down Expand Up @@ -414,8 +413,7 @@ public function registerResponse(ServerRequestInterface $request): ?EntityPublic
);

// Load the data
/** @var array<string, mixed> $body */
$body = $request->getParsedBody();
$body = $request->getBody()->getContents();
$publicKeyCredential = $this->serializer->deserialize(
$body,
PublicKeyCredential::class,
Expand Down

0 comments on commit e1f0726

Please sign in to comment.