全面修正分级授权,去掉Anonymous,采用Authenticate进行授权

This commit is contained in:
yubaolee
2016-05-26 20:10:22 +08:00
parent b3c6df2931
commit 855f97df7d
24 changed files with 227 additions and 244 deletions

View File

@@ -4,6 +4,7 @@ using OpenAuth.Domain;
using System;
using System.Linq;
using System.Web.Mvc;
using OpenAuth.Mvc.Models;
namespace OpenAuth.Mvc.Controllers
{
@@ -18,6 +19,7 @@ namespace OpenAuth.Mvc.Controllers
//
// GET: /RoleManager/
[Authenticate]
public ActionResult Index()
{
return View();
@@ -66,7 +68,6 @@ namespace OpenAuth.Mvc.Controllers
}
#region
public ActionResult LookupMulti(int userId)
{
ViewBag.UserId = userId;