public ActionResult Login(Login model, string returnUrl)
{
if (ModelState.IsValid)
{
if (System.Web.Security.Membership.ValidateUser(model.UserName, model.Password))
{
SecurityUser secUser = AuthenticationCommands.GetSecurityUserByUsername(model.UserName);
CustomUserData customData = new CustomUserData();
customData.IsPersistent = model.RememberMe;
bool isActive = true;
//modified for remember me funcationality
if (customData.IsPersistent)
{
Response.Cookies["UserName"].Value = model.UserName;
Response.Cookies["PWD"].Value = model.Password;
Response.Cookies["UserName"].Expires = DateTime.Now.AddMonths(2);
Response.Cookies["PWD"].Expires = DateTime.Now.AddMonths(2);
}
this is the code for login in mvc web application its getting error sql server instance at the model.username, model.password line