1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

[PM-5819] fix: return empty string if name is null (#3691)

This commit is contained in:
Andreas Coroiu 2024-01-25 14:50:13 +01:00 committed by GitHub
parent 10f590b4e7
commit c4625c6c94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ internal class GetWebAuthnLoginCredentialCreateOptionsCommand : IGetWebAuthnLogi
{
var fidoUser = new Fido2User
{
DisplayName = user.Name,
DisplayName = user.Name ?? "",
Name = user.Email,
Id = user.Id.ToByteArray(),
};