Implemented default registration groups

This commit is contained in:
Lucas Nicodemus 2011-07-30 16:58:36 -06:00
parent 37146adb4c
commit fe2d7e443c
2 changed files with 3 additions and 1 deletions

View file

@ -382,7 +382,7 @@ namespace TShockAPI
var user = new User();
user.Name = args.Parameters[0].ToLower();
user.Password = args.Parameters[1];
user.Group = "default"; // FIXME -- we should get this from the DB.
user.Group = TShock.Config.DefaultRegistrationGroupName; // FIXME -- we should get this from the DB.
if (TShock.Users.GetUserByName(user.Name) == null) // Cheap way of checking for existance of a user
{

View file

@ -100,6 +100,8 @@ namespace TShockAPI
public bool EnableAntiLag = true;
public string DefaultRegistrationGroupName = "default";
/// <summary>
/// Valid types are "sha512", "sha256", "md5"
/// </summary>