diff --git a/src/Controllers/Common/AuthenticationController.cs b/src/Controllers/Common/AuthenticationController.cs index 3fc5548..43db39e 100644 --- a/src/Controllers/Common/AuthenticationController.cs +++ b/src/Controllers/Common/AuthenticationController.cs @@ -238,6 +238,7 @@ public class AuthenticationController : Controller { if (session != null) { info.Authenticated = true; info.DisplayName = session.Viking.Name; + info.Id = session.Viking.Id; Role? role = session.Viking.MMORoles.FirstOrDefault()?.Role; if (role != null) info.Role = (Role)role; diff --git a/src/Schema/AuthenticationInfo.cs b/src/Schema/AuthenticationInfo.cs index 6ebbd37..3cb415e 100644 --- a/src/Schema/AuthenticationInfo.cs +++ b/src/Schema/AuthenticationInfo.cs @@ -11,6 +11,9 @@ public class AuthenticationInfo { [XmlElement] public Role Role { get; set; } = Role.User; + + [XmlElement] + public int Id { get; set; } } [Serializable]