public static void ChangeUserHash(int userId, out string hash, out string guid) { User user = User.Get(userId); user.Guid = GeneralUtils.GetGuid(); User.Update(user); hash = StringHasher.HashString(user.Email); guid = user.Guid; }
/// <summary> /// Sets the EncryptedPassword property to a hashed version of the specified value /// </summary> public virtual void SetPassword(string password) { m_UnencryptedPassword = password.Trim(); Password = StringHasher.HashString(m_UnencryptedPassword + PasswordSalt); }