public JsonResult SubmitForget() { if (!Permission.NotLoginNeed(Request, Response, Session)) { return(null); } string username = Request["username"]; string email = Request["email"]; User user = UserView.GetUserByUsername(username); UserInfo info = UserInfoView.GetUserInfo(user.uid); if (email != info.email) { return(Json(false)); } ForgetPassword fp = new ForgetPassword { uid = user.uid, code = Hash.Md5(user.login_date.ToString() + user.uid + new Random().Next() + DateTime.Now) }; return(Json(UserView.ForgetPassword(fp))); }