diff --git a/ShiftOS.Objects/Save.cs b/ShiftOS.Objects/Save.cs index ddf41ff..a901a92 100644 --- a/ShiftOS.Objects/Save.cs +++ b/ShiftOS.Objects/Save.cs @@ -27,6 +27,10 @@ namespace ShiftOS.Objects private dynamic _settings = new SettingsObject(); + public Guid ID { get; set; } + + public bool IsMUDAdmin { get; set; } + public dynamic Settings { get diff --git a/ShiftOS.Server.WebAdmin/Program.cs b/ShiftOS.Server.WebAdmin/Program.cs index 91e4831..b624ee7 100644 --- a/ShiftOS.Server.WebAdmin/Program.cs +++ b/ShiftOS.Server.WebAdmin/Program.cs @@ -45,6 +45,24 @@ namespace ShiftOS.Server.WebAdmin { templateParams.Add("{logout}", "
Username | +System Name | +Codepoints | +Shiftorium Upgrades | +Is MUD Admin | +Actions | +
{save.Username} | +{save.SystemName} | +{save.Codepoints} | +{save.CountUpgrades()} installed, {save.Upgrades.Count} total | +{save.IsMUDAdmin} | ++ Toggle admin + Delete save + | +
Username | +System name | +Codepoints | +Actions | +
{save.Username} | +{save.SystemName} | +{save.Codepoints} | ++ |
{listdesc}
+ +{list} \ No newline at end of file diff --git a/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt b/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt index cdb6e0d..82893e9 100644 --- a/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt +++ b/ShiftOS.Server.WebAdmin/Resources/HtmlTemplate.txt @@ -6,6 +6,7 @@ + @@ -21,34 +22,36 @@ Test subjectsShiftOS - MUD admin panel - Copyright © 2017 ShiftOS developers
Your multi-user domain is newly-created. Before you can use the admin panel, you must create a ShiftOS user to act as the administrator of the MUD.
+ +{user_create_form} \ No newline at end of file diff --git a/ShiftOS.Server.WebAdmin/Resources/SetupView.txt b/ShiftOS.Server.WebAdmin/Resources/SetupView.txt index d1226dd..9e83a45 100644 --- a/ShiftOS.Server.WebAdmin/Resources/SetupView.txt +++ b/ShiftOS.Server.WebAdmin/Resources/SetupView.txt @@ -1,22 +1,5 @@Welcome to your multi-user domain. If you are seeing this screen, it means that the web administration panel is successfully running and listening for requests. Before you can start using the admin panel you must create an Admin account. This account will let you log in and manage other authorized users, manage saves, Shiftnet pages and other information.
+This multi-user domain contains some users, however none of them are administrators. Please choose your user to make it an admin.
-To continue, type a username and password.
- - \ No newline at end of file +{savelist} \ No newline at end of file diff --git a/ShiftOS.Server.WebAdmin/ShiftOS.Server.WebAdmin.csproj b/ShiftOS.Server.WebAdmin/ShiftOS.Server.WebAdmin.csproj index 3eaca2f..faec295 100644 --- a/ShiftOS.Server.WebAdmin/ShiftOS.Server.WebAdmin.csproj +++ b/ShiftOS.Server.WebAdmin/ShiftOS.Server.WebAdmin.csproj @@ -109,6 +109,12 @@