WIP audiences
This commit is contained in:
parent
9846210fd6
commit
f3bb039d2f
15 changed files with 102 additions and 82 deletions
|
|
@ -57,6 +57,8 @@ namespace Yavsc
|
|||
|
||||
public const string StreamingPath = "/api/stream/put";
|
||||
|
||||
public static string NameClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/name";
|
||||
|
||||
public static string RoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace Yavsc.Abstract.Identity
|
|||
/// </remarks>
|
||||
public static string AvatarSrc(IApplicationUser? user)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(user?.UserName))
|
||||
if (user==null || string.IsNullOrWhiteSpace(user?.UserName))
|
||||
return YavscConstants.DefaultAvatar;
|
||||
return $"{YavscConstants.AvatarsPath}/{user!.UserName}.s.png";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue