/// <summary> /// Sets the users password /// </summary> /// <param name="newPass">The new password</param> private void SetPassword(string newPass) { PassHash = Accounting.HashSHA1(newPass); }
/// <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)); }