Beispiel #1
0
        public ActionResult ChangeCode(string Old, string Word)
        {
            string message = string.Empty;

            if (!ADController.SetUserPassword(sAMAccountName, Old, Word, out message))
            {
                throw new ArgumentException("修改密码失败!1、密码最少六位,推荐使用八位以上密码;2、密码包括大写字符、小写字符、数字、符号中三类;" + message);
            }
            return(Redirect("/Home/Index"));
        }