Beispiel #1
0
        public ActionResult RevisePsw(RevisePsw_M form)
        {
            var uid = form.unitid + "-" + form.userid;

            if (_TApp.FindTeacher(uid) != null)
            {
                if (form.NewPsw1 != null && form.NewPsw2 != null)
                {
                    if (form.NewPsw1 != form.NewPsw2)
                    {
                        return(WxAlert("密码不匹配", "提示"));
                    }
                    else
                    {
                        if (_TApp.ForgetPsw(uid, form.NewPsw1))
                        {
                            return(WxAlert("重置密码成功", "恭喜", "/AppTeacher2/TVisitor/Login"));
                        }
                        else
                        {
                            return(WxAlert("重置密码失败"));
                        }
                    }
                }
                else
                {
                    return(WxAlert("请填写新密码"));
                }
            }
            else
            {
                return(WxAlert("请填写正确信息"));
            }
        }
Beispiel #2
0
 public ActionResult RevisePsw()
 {
     return(View(RevisePsw_M.ToViewModel(_TApp.GetSchoolIItems())));
 }