User Registration
New User Registration
Registration Form
<form
action="{{ path('app_register') }}"
method="post"
{{ stimulus_controller('@web-auth/webauthn-stimulus',
{
creationOptionsUrl: path('webauthn.controller.creation.creation.new_user'),
creationResultField: 'input[name="attestation"]'
}
) }}
>
<label for="username">Username</label>
<input
type="text"
id="username"
name="username"
required
autocomplete="username webauthn"
>
<label for="displayName">Display Name</label>
<input
type="text"
id="displayName"
name="displayName"
placeholder="John Doe"
>
<input type="hidden" id="attestation" name="attestation">
<button
type="submit"
{{ stimulus_action('@web-auth/webauthn-stimulus', 'register') }}
>
Register with Passkey
</button>
</form>Bundle Configuration
User Entity Guesser
Adding Authenticators to Existing Users
Add Authenticator Form
Configuration for Existing Users
Stimulus Controller Options
Option
Type
Required
Description
Auto-Register Example
Error Handling
See Also
Last updated
Was this helpful?