Fix blank password logins further
How this worked prior to BCrypt is beyond me
This commit is contained in:
parent
ddd89043c9
commit
fcda79ea4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue