fix username
This commit is contained in:
parent
37f2a91612
commit
c376ef269d
|
|
@ -20,7 +20,7 @@ public class UserIdentity : IUserIdentity
|
|||
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName
|
||||
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Name)?.Value!;
|
||||
=> _claims?.FirstOrDefault(x => x.Type == "name")?.Value!;
|
||||
|
||||
public string Email
|
||||
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Email)?.Value!;
|
||||
|
|
|
|||
Loading…
Reference in a new issue