增加登陆逻辑,如果开启,只需要去掉basecontroller中的注释就行

This commit is contained in:
yubaolee
2015-11-30 17:44:42 +08:00
parent afceafb00c
commit b91156e06b
12 changed files with 310 additions and 256 deletions

View File

@@ -29,9 +29,9 @@ namespace OpenAuth.Mvc.Controllers
base.OnActionExecuting(filterContext);
//#region 当Session过期自动跳出登录画面
//if (SessionHelper.GetSessionUser<LoginViewModel>() == null)
//if (SessionHelper.GetSessionUser<User>() == null)
//{
// Response.Redirect("~/Account/Login");
// Response.Redirect("/Login/Index");
//}
//#endregion
}