Fix blank password logins further

How this worked prior to BCrypt is beyond me
This commit is contained in:
Lucas Nicodemus 2015-04-30 15:56:29 -06:00
parent ddd89043c9
commit fcda79ea4c

View file

@ -595,7 +595,7 @@ namespace TShockAPI.DB
/// <returns>string hash</returns>
protected string HashPassword(string password)
{
if (string.IsNullOrEmpty(password) || password == "non-existant password")
if (string.IsNullOrEmpty(password) && this.Password == "non-existant password")
return "non-existant password";
return HashPassword(Encoding.UTF8.GetBytes(password));
}