Skip to content

Commit

Permalink
fixed: #50 登录路径
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Oct 12, 2016
1 parent 81b84a2 commit 8720bc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8720bc8

Please sign in to comment.