mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-14 01:29:32 +08:00
添加DI支持
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
using System.Web.Mvc;
|
||||
using Infrastructure.Helper;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Mvc.Models;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
@@ -25,7 +26,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
base.OnActionExecuting(filterContext);
|
||||
|
||||
#region 当Session过期自动跳出登录画面
|
||||
if (SessionHelper.GetSessionUser<User>() == null)
|
||||
if (SessionHelper.GetSessionUser<LoginViewModel>() == null)
|
||||
{
|
||||
Response.Redirect("~/Account/Login");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user