Skip to content

Commit da582da

Browse files
authored
Update ProfileService.cs
Update check for LastName value in GetClaimsFromUser()
1 parent 784dc72 commit da582da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Services/Identity/Identity.API/Services/ProfileService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private IEnumerable<Claim> GetClaimsFromUser(ApplicationUser user)
7474
if (!string.IsNullOrWhiteSpace(user.Name))
7575
claims.Add(new Claim("name", user.Name));
7676

77-
if (!string.IsNullOrWhiteSpace(user.Name))
77+
if (!string.IsNullOrWhiteSpace(user.LastName))
7878
claims.Add(new Claim("last_name", user.LastName));
7979

8080
if (!string.IsNullOrWhiteSpace(user.CardNumber))

0 commit comments

Comments
 (0)