From 467f9bf5b92eae6bce049966d67c39ae2a0a25e5 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Thu, 27 Sep 2018 14:30:58 -0400 Subject: [PATCH] Rearrange properties to be standards compliant --- .../Security/WindowsSystemIdentity.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs b/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs index 1cd09cd8c7..43065b1b5b 100644 --- a/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs +++ b/src/Tgstation.Server.Host/Security/WindowsSystemIdentity.cs @@ -11,6 +11,12 @@ namespace Tgstation.Server.Host.Security /// sealed class WindowsSystemIdentity : ISystemIdentity { + /// + public string Uid => (userPrincipal?.Sid ?? identity.User).ToString(); + + /// + public string Username => userPrincipal?.Name ?? identity.Name; + /// /// The for the /// @@ -52,12 +58,6 @@ namespace Tgstation.Server.Host.Security } } - /// - public string Uid => (userPrincipal?.Sid ?? identity.User).ToString(); - - /// - public string Username => userPrincipal?.Name ?? identity.Name; - /// public ISystemIdentity Clone() {