UserManager insert does no passsword hashing

This should be fine, now, because User.CreateBCryptHash should take
care of this.
This commit is contained in:
Lucas Nicodemus 2015-04-13 10:58:22 -06:00
parent ed34a87c3f
commit bbf6fd2c86

View file

@ -67,7 +67,7 @@ namespace TShockAPI.DB
try
{
ret = database.Query("INSERT INTO Users (Username, Password, UUID, UserGroup, Registered) VALUES (@0, @1, @2, @3, @4);", user.Name,
TShock.Utils.HashPassword(user.Password), user.UUID, user.Group, DateTime.UtcNow.ToString("s"));
user.Password, user.UUID, user.Group, DateTime.UtcNow.ToString("s"));
}
catch (Exception ex)
{