mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-21 11:33:06 +03:00
use email instead of empty name for webauhn (#6733)
* if empty use email instead of name for webauhn * use email as display name if name is empty
This commit is contained in:
@@ -144,7 +144,7 @@ async fn generate_webauthn_challenge(data: Json<PasswordOrOtpData>, headers: Hea
|
||||
let (mut challenge, state) = WEBAUTHN.start_passkey_registration(
|
||||
Uuid::from_str(&user.uuid).expect("Failed to parse UUID"), // Should never fail
|
||||
&user.email,
|
||||
&user.name,
|
||||
user.display_name(),
|
||||
Some(registrations),
|
||||
)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user