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:
Stefan Melmuk authored and GitHub committed 2026-01-18 15:23:21 +01:00
1 parent b2cd556f3e
commit 25a71d913f
4 files changed
+13 -4

No files matched your search

+1 -1
View File
@@ -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),
)?;