Skip to content

Commit

Permalink
Set a length limit for publicKeyCredentialId field (#678)
Browse files Browse the repository at this point in the history
Added a `length="250"` attribute to the `publicKeyCredentialId` field in the doctrine mapping. This enforces a maximum length constraint, ensuring consistency and preventing potential database issues.
  • Loading branch information
Spomky authored Jan 18, 2025
1 parent fb2e193 commit 90ef21b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd"
>
<mapped-superclass name="Webauthn\PublicKeyCredentialSource">
<field name="publicKeyCredentialId" type="base64" unique="true"/>
<field name="publicKeyCredentialId" type="base64" unique="true" length="250"/>
<field name="type"/>
<field name="transports" type="json"/>
<field name="attestationType"/>
Expand Down

0 comments on commit 90ef21b

Please sign in to comment.