hello,
I uninstalled owin and identity completely from my mvc 5 web api 2 application so that I use forms authentication my web.config file portion is:
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" defaultUrl="~/" />
</authentication>
and the mvc account controller is:
public ViewResult LogOn()
{
return View(new LogOnModel { UserName = "", Password = "", RememberMe = false });
}
[HttpPost]
public ActionResult LogOn(LogOnModel model)
{
string returnUrl = "";
if (Request.QueryString["ReturnUrl"] != null)
returnUrl = Request.QueryString["ReturnUrl"].ToString();
if (ModelState.IsValid)
{
if (Membership.ValidateUs ...
Go to the complete details ...