mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
Added Id to MMO AuthenticationInfo
This commit is contained in:
parent
8e141ab43d
commit
d00d56a095
@ -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;
|
||||
|
@ -11,6 +11,9 @@ public class AuthenticationInfo {
|
||||
|
||||
[XmlElement]
|
||||
public Role Role { get; set; } = Role.User;
|
||||
|
||||
[XmlElement]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
Loading…
x
Reference in New Issue
Block a user