示例#1
0
        public ActionResult ResetPassword(ADUser adUser, string password, string verifiedPassword)
        {
            if (adUser.ResetPassword(password, verifiedPassword, ModelState) == true)
            {
                string description = ChangeLog.PasswordReset(adUser, User, db);

                ViewBag.Description = description;

                return(View("Success"));
            }

            ViewBag.Tooltip = PowerShell.GetHTMLString("ADUsers", "PasswordPolicy", null);

            return(View(adUser));
        }