#region 登录
[HttpGet]
public ActionResult Login()
{
return View();
}
[HttpPost]
public ActionResult Login(UserInfo users)
{
if (!users.CheckNo.ToLower().Equals(TempData["code"].ToString()))
{
return Content("");
}
else
{
//记住用户名和密码
if (!string.IsNullOrEmpty(users.Removeme))
{
HttpCookie IdCookie = new HttpCookie("loginId", users.AccountNum);
IdCookie.Expires = DateTime.MaxValue;
IdCookie.HttpOnly = true;
Response.Cookies.Add(IdCookie);