Commit e0e126b0 by 泽锋 李

优化注销功能

parent 6d97b1e7
......@@ -59,12 +59,11 @@ namespace AutoTurnOver.Controllers
return new JsonResult(new { data = user });
}
public string Logout()
public ActionResult Logout()
{
MyHttpContext.Current.Session.Remove("UserInfo");
MyHttpContext.Current.Response.Cookies.Delete("BailunToken");
Response.Redirect("http://sso.bailuntec.com/?returnUrl=http://aims.bailuntec.com",true);
return null;
return Redirect("http://sso.bailuntec.com/?returnUrl=http://aims.bailuntec.com");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment