use email instead of empty name for webauhn #149

Closed
opened 2026-04-05 20:32:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @stefan0xC on 1/18/2026

it seems like the passkey registration currently fails if a user's name is empty
b2cd556f3e/src/api/core/two_factor/webauthn.rs (L144-L149)

since the user_display_name is optional and not used for authentication using the email here should be okay.

this should fix #6732

*Originally created by @stefan0xC on 1/18/2026* it seems like the passkey registration currently fails if a user's name is empty https://github.com/dani-garcia/vaultwarden/blob/b2cd556f3e79673d3eff1dac9b7402c18aa69d69/src/api/core/two_factor/webauthn.rs#L144-L149 since the `user_display_name` [is optional](https://docs.rs/webauthn-rs/latest/webauthn_rs/struct.Webauthn.html#method.start_passkey_registration) and not used for authentication using the email here should be okay. this should fix #6732
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#149