mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-18 14:16:26 +08:00
全面修正分级授权,去掉Anonymous,采用Authenticate进行授权
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Web.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.App.ViewModel;
|
||||
using OpenAuth.Mvc.Models;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
@@ -18,6 +19,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
|
||||
//
|
||||
// GET: /UserManager/
|
||||
[Authenticate]
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
|
||||
Reference in New Issue
Block a user