Пример #1
0
        public ActionResult UpdatePassword(string password)
        {
            if (ValidationUtility.IsValidPassword(password))
            {
                var salt = Password.GenerateSalt();
                var hash = Password.ComputeHash(password, salt);

                Database.Instance.UpdatePassword(hash, salt);
            }

            return(RedirectToAction(nameof(Settings)));
        }