public JsonResult Login(LoginModel model, string returnUrl) { if (WebSecurity.Login(model.UserName, model.Password, model.RememberMe)) { } ModelState.AddModelError("", "error"); return Json(new { Ok = false, Message = main.LoginError, status = "activated" }); }
if
Login
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)