C# FormsAuthentication对象已过时[使用MVC5] |
您所在的位置:网站首页 › setauthcookie › C# FormsAuthentication对象已过时[使用MVC5] |
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 |