Move all TShock usages to use User.VerifyPassword()
This commit is contained in:
parent
bbf6fd2c86
commit
37b5a52fdb
5 changed files with 10 additions and 11 deletions
|
|
@ -132,7 +132,7 @@ namespace Rests
|
|||
if (userAccount == null)
|
||||
return new RestObject("401") { Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." };
|
||||
|
||||
if (!TShock.Utils.HashPassword(password).Equals(userAccount.Password, StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!userAccount.VerifyPassword(password))
|
||||
return new RestObject("401")
|
||||
{ Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue