C# FormsAuthentication对象已过时[使用MVC5]

您所在的位置:网站首页 setauthcookie C# FormsAuthentication对象已过时[使用MVC5]

C# FormsAuthentication对象已过时[使用MVC5]

#C# FormsAuthentication对象已过时[使用MVC5]| 来源: 网络整理| 查看: 265

C# FormsAuthentication对象已过时[使用MVC5],c#,forms-authentication,dotnetopenauth,asp.net-mvc-5,owin,C#,Forms Authentication,Dotnetopenauth,Asp.net Mvc 5,Owin,我在MVC5站点中使用以下代码: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel loginModel) { if (ModelState.IsValid) { var authenticated = FormsAuthentication.Authenticate(loginModel.UserName, loginModel.Password); if



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3