I am using membership in MVC project.
if (ModelState.IsValid)
{
if (Membership.ValidateUser(model.username.Trim(), model.password.Trim()))
//control goes directly to else from here even i type correct username and password.
{
FormsAuthentication.SetAuthCookie(model.username, true);
}
}
Please help me...Thank in advance