Saving
This commit is contained in:
1 parent
6d7138479e
commit
ba4a4b14c8
87 files changed
+22561
-294
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class CustomPrincipal : CustomIPrincipal
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PictureUrl { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
public bool IsAdmin { get; set; } = false;
|
||||
public IIdentity Identity { get; }
|
||||
|
||||
public CustomPrincipal(string userName, string authType) =>
|
||||
Identity = new GenericIdentity(userName, authType);
|
||||
|
||||
public bool IsInRole(string role) => false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user