Implemented default registration groups
This commit is contained in:
parent
37146adb4c
commit
fe2d7e443c
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ namespace TShockAPI
|
|||
|
||||
public bool EnableAntiLag = true;
|
||||
|
||||
public string DefaultRegistrationGroupName = "default";
|
||||
|
||||
/// <summary>
|
||||
/// Valid types are "sha512", "sha256", "md5"
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue