diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-29 05:01:45 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-29 05:33:04 +1000 |
| commit | 76e4bf609c3d196bd20619188a317fca66f4a04a (patch) | |
| tree | 8d6544efc82782f2417f39f31fd05aa76e68316e /Principal.cs | |
| parent | bedcb6b176130fc2c6bd4657c8af4d407b64c970 (diff) | |
Separated Principal and LocalPrincipal types
Diffstat (limited to 'Principal.cs')
| -rw-r--r-- | Principal.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Principal.cs b/Principal.cs index 553fbec..677f926 100644 --- a/Principal.cs +++ b/Principal.cs @@ -4,14 +4,11 @@ using System.Security.Principal; namespace HyperBooru; [Index(nameof(Name))] -public class HBPrincipal : HBObject { - public string Name { get; set; } - public SecurityIdentifier Sid { get; set; } - public List<Group> MemberOf { get; set; } +public class Principal { + public string Name { get; set; } + public SecurityIdentifier Sid { get; set; } } -public class User : HBPrincipal { - public string PasswordHash { get; set; } -} +public class User : Principal {} -public class Group : HBPrincipal {}
\ No newline at end of file +public class Group : Principal {}
\ No newline at end of file |
