/auth now grants superadmin internally and adds the user to the db
This commit is contained in:
parent
236cf6b42b
commit
7bc49e29e0
2 changed files with 3 additions and 2 deletions
|
|
@ -1528,6 +1528,7 @@ namespace TShockAPI
|
||||||
if (givenCode == TShock.AuthToken && args.Player.Group.Name != "superadmin")
|
if (givenCode == TShock.AuthToken && args.Player.Group.Name != "superadmin")
|
||||||
{
|
{
|
||||||
TShock.Users.AddUser(args.Player.IP,"","","superadmin");
|
TShock.Users.AddUser(args.Player.IP,"","","superadmin");
|
||||||
|
args.Player.Group = Tools.GetGroup("superadmin");
|
||||||
args.Player.SendMessage("This IP address is now superadmin. Please perform the following command:");
|
args.Player.SendMessage("This IP address is now superadmin. Please perform the following command:");
|
||||||
args.Player.SendMessage("/user add <username>:<password> superadmin");
|
args.Player.SendMessage("/user add <username>:<password> superadmin");
|
||||||
args.Player.SendMessage("This will create the username <username> with the password <password> as part of the superadmin group.");
|
args.Player.SendMessage("This will create the username <username> with the password <password> as part of the superadmin group.");
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
|
||||||
[assembly: AssemblyVersion("2.3.4.0711")]
|
[assembly: AssemblyVersion("2.3.4.0712")]
|
||||||
[assembly: AssemblyFileVersion("2.3.4.0711")]
|
[assembly: AssemblyFileVersion("2.3.4.0712")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue