Commit c62b9233 by 泽锋 李

新增注销功能

parent 7f8c69e6
......@@ -10,6 +10,7 @@ using System.IO;
using AutoTurnOver.Common;
using AutoTurnOver.DB;
using AutoTurnOver.Utility;
using AutoTurnOver.Models;
namespace AutoTurnOver.Controllers
{
......@@ -58,7 +59,14 @@ namespace AutoTurnOver.Controllers
return new JsonResult(new { data = user });
}
public string Logout()
{
MyHttpContext.Current.Session.Remove("UserInfo");
MyHttpContext.Current.Response.Cookies.Delete("BailunToken");
Response.Redirect("http://sso.bailuntec.com/?returnUrl=http://aims.bailuntec.com");
return null;
}
/// <summary>
/// 获取仓库国家列表
......
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