Add documentation for CreateBCryptHash
This commit is contained in:
parent
298c61564f
commit
6cef3c6eb3
1 changed files with 2 additions and 0 deletions
|
|
@ -409,6 +409,8 @@ namespace TShockAPI.DB
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Creates a BCrypt hash for a user and stores it in this object.</summary>
|
||||
/// <param name="password">string password - the plain text password to hash</param>
|
||||
public void CreateBCryptHash(string password) {
|
||||
try {
|
||||
this.Password = BCrypt.Net.BCrypt.HashPassword(password, TShock.Config.BCryptWorkFactor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue