From 4bc4b2a6eb70d97341ec9c47ccbeab06f802fc33 Mon Sep 17 00:00:00 2001 From: White Date: Thu, 28 May 2015 16:44:34 +0930 Subject: [PATCH] Fixed another bug with the BCrypt implementation --- TShockAPI/DB/UserManager.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/TShockAPI/DB/UserManager.cs b/TShockAPI/DB/UserManager.cs index c4cf4baa..e85e4d64 100755 --- a/TShockAPI/DB/UserManager.cs +++ b/TShockAPI/DB/UserManager.cs @@ -464,17 +464,6 @@ namespace TShockAPI.DB { // Save the old password, in the event that we have to revert changes. string oldpassword = Password; - - // Convert the password to BCrypt, and save it. - try - { - Password = BCrypt.Net.BCrypt.HashPassword(password, TShock.Config.BCryptWorkFactor); - } - catch (ArgumentOutOfRangeException) - { - TShock.Log.ConsoleError("Invalid BCrypt work factor in config file! Upgrading user password to BCrypt using default work factor."); - Password = BCrypt.Net.BCrypt.HashPassword(password); - } try {