From 8720bc83970d7bf853e2478ffafb4f3a1e96a2e7 Mon Sep 17 00:00:00 2001 From: Wizzercn Date: Wed, 12 Oct 2016 12:30:16 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20#50=20=E7=99=BB=E5=BD=95=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/wizzer/common/processor/NutShiroProcessor.java | 4 ++-- .../cn/wizzer/common/shiro/filter/ShiroActionFilter.java | 2 +- src/main/resources/shiro.ini | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/cn/wizzer/common/processor/NutShiroProcessor.java b/src/main/java/cn/wizzer/common/processor/NutShiroProcessor.java index 0c5357093..cd0d7d3dc 100644 --- a/src/main/java/cn/wizzer/common/processor/NutShiroProcessor.java +++ b/src/main/java/cn/wizzer/common/processor/NutShiroProcessor.java @@ -20,9 +20,9 @@ public class NutShiroProcessor extends AbstractProcessor { protected NutShiroMethodInterceptor interceptor; - protected String loginUri = "/private/login"; + protected String loginUri = "/platform/login"; - protected String noAuthUri = "/private/login/noPermission"; + protected String noAuthUri = "/platform/login/noPermission"; protected boolean match; diff --git a/src/main/java/cn/wizzer/common/shiro/filter/ShiroActionFilter.java b/src/main/java/cn/wizzer/common/shiro/filter/ShiroActionFilter.java index f253b5570..02859158c 100644 --- a/src/main/java/cn/wizzer/common/shiro/filter/ShiroActionFilter.java +++ b/src/main/java/cn/wizzer/common/shiro/filter/ShiroActionFilter.java @@ -56,7 +56,7 @@ public Object[] getArguments() { } private View view = new ServerRedirectView("/"); - private View NOT_PERMISSION = new ServerRedirectView("/private/login"); + private View NOT_PERMISSION = new ServerRedirectView("/platform/login"); public ShiroActionFilter() { diff --git a/src/main/resources/shiro.ini b/src/main/resources/shiro.ini index 9569fcd23..fe5ceb8bb 100644 --- a/src/main/resources/shiro.ini +++ b/src/main/resources/shiro.ini @@ -53,11 +53,11 @@ securityManager.cacheManager = $cacheManager securityManager.rememberMeManager = $rememberMeManager authc = cn.wizzer.common.shiro.filter.SimpleAuthenticationFilter -authc.loginUrl = /private/login -logout.redirectUrl= /private/login +authc.loginUrl = /platform/login +logout.redirectUrl= /platform/login [urls] -/private/doLogin = anon +/platform/doLogin = anon /assets/** = anon /** = anon -/private/** = authc +/platform/** = authc