Added some precautions against duplicates.
This commit is contained in:
parent
a8e55d44e6
commit
a9b558e75d
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ namespace TShockAPI
|
||||||
if (args.Parameters.Count == 2)
|
if (args.Parameters.Count == 2)
|
||||||
{
|
{
|
||||||
var user = new User();
|
var user = new User();
|
||||||
user.Name = args.Parameters[0];
|
user.Name = args.Parameters[0].ToLower();
|
||||||
user.Password = args.Parameters[1];
|
user.Password = args.Parameters[1];
|
||||||
user.Group = "default"; // FIXME -- we should get this from the DB.
|
user.Group = "default"; // FIXME -- we should get this from the DB.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue