Example #1
0
        private static void SetAuth(IConfiguration configuration, LoginParameters loginParameters)
        {
            var hashProvider = HashProvider.GetDefault();

            configuration.UserName = loginParameters.UserName;
            configuration.Password = hashProvider.ComputeHash(loginParameters.Password);
            configuration.Save();
        }