/auth now grants superadmin internally and adds the user to the db

This commit is contained in:
Lucas Nicodemus 2011-07-12 01:37:29 -06:00
parent 236cf6b42b
commit 7bc49e29e0
2 changed files with 3 additions and 2 deletions

View file

@ -1528,6 +1528,7 @@ namespace TShockAPI
if (givenCode == TShock.AuthToken && args.Player.Group.Name != "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("/user add <username>:<password> superadmin");
args.Player.SendMessage("This will create the username <username> with the password <password> as part of the superadmin group.");

View file

@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.4.0711")]
[assembly: AssemblyFileVersion("2.3.4.0711")]
[assembly: AssemblyVersion("2.3.4.0712")]
[assembly: AssemblyFileVersion("2.3.4.0712")]