更新代码,退出登录跳转网址通过FormAuthentication.LoginUrl指定

This commit is contained in:
Argo-Lenovo 2017-01-15 21:48:31 +08:00
parent 1e9e06bf29
commit f521661e58
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ namespace Bootstrap.Admin.Controllers
public ActionResult Logout() public ActionResult Logout()
{ {
FormsAuthentication.SignOut(); FormsAuthentication.SignOut();
return RedirectToAction("Login"); return Redirect(FormsAuthentication.LoginUrl);
} }
/// <summary> /// <summary>
/// ///