Esempio n. 1
0
 /// <summary>
 /// Sets the users password
 /// </summary>
 /// <param name="newPass">The new password</param>
 private void SetPassword(string newPass)
 {
     PassHash = Accounting.HashSHA1(newPass);
 }
Esempio n. 2
0
 /// <summary>
 /// Check the users password
 /// </summary>
 /// <param name="password">Password to check</param>
 /// <returns>True if the password is correct for this account</returns>
 bool VerifyPass(string password)
 {
     return(PassHash == Accounting.HashSHA1(password));
 }