User Authentication
<form action={{ path('app_login') }} method="post">
<label for="username">Username</label>
<input name="username" type="text" id="username" placeholder="Type your username here" autocomplete="username webauthn">
<input type="hidden" id="assertion" name="assertion">
<button type="submit">
Sign in
</button>
</form><form action={{ path('app_login') }} method="post"
{{ stimulus_controller('@web-auth/webauthn-stimulus',
{
requestOptionsUrl: path('webauthn.controller.request.request.login')
requestResultField: 'input[name="assertion"]'
}
) }}
>
<label for="username">Username</label>
<input name="username" type="text" id="username" placeholder="Type your username here" autocomplete="username webauthn">
<input type="hidden" id="assertion" name="assertion">
<button
type="submit"
{{ stimulus_action('@web-auth/webauthn-stimulus', 'signin') }}
>
Sign in
</button>
</form>
Redirection after login
Browser Autofill
Last updated
Was this helpful?