Now targets NET 4.5, so the solution actually compiles.

Fixed an issue where /user password sets a blank string in the database
Fixed an issue where /password <old> <new> wouldn't update the user's password
This commit is contained in:
White 2015-05-27 18:29:29 +09:30
parent c918d851b0
commit e33b6ebebc
4 changed files with 30 additions and 12 deletions

View file

@ -118,6 +118,8 @@ namespace TShockAPI.DB
{
try
{
user.CreateBCryptHash(password);
if (
_database.Query("UPDATE Users SET Password = @0 WHERE Username = @1;", user.Password,
user.Name) == 0)