Skip to content

Commit

Permalink
check: nullability for phoneNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
masum-ulu committed Nov 6, 2024
1 parent 81fddf3 commit dd2962a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected virtual Task<IActionResult> HandleConfirmUserAsync(OpenIddictRequest r
{
["userId"] = user.Id.ToString("N"),
["email"] = user.Email,
["phoneNumber"] = user.PhoneNumber
["phoneNumber"] = user.PhoneNumber ?? ""
});

return Task.FromResult<IActionResult>(Forbid(properties, OpenIddictServerAspNetCoreDefaults.AuthenticationScheme));
Expand Down

0 comments on commit dd2962a

Please sign in to comment.