Skip to content

Commit

Permalink
Merge pull request #498 from nextcloud/fix/finish-register-entity-id
Browse files Browse the repository at this point in the history
fix: registration not returning the entityId
  • Loading branch information
st3iny authored Nov 28, 2023
2 parents 19e4b8e + e76cd9b commit 01479ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Service/WebAuthnManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public function finishRegister(IUser $user, string $name, $data): array {
$this->eventDispatcher->dispatch(StateChanged::class, new StateChanged($user, true));

return [
'entityId' => $entity->getId(),
'id' => base64_encode($publicKeyCredentialSource->getPublicKeyCredentialId()),
'name' => $name,
'createdAt' => $entity !== null ? $entity->getCreatedAt() : null,
Expand Down

0 comments on commit 01479ad

Please sign in to comment.