浏览代码

Update LogoutEndpoint.java

Crystal.Sea 4 年之前
父节点
当前提交
6473ed6194
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      maxkey-web-maxkey/src/main/java/org/maxkey/web/endpoint/LogoutEndpoint.java

+ 1 - 1
maxkey-web-maxkey/src/main/java/org/maxkey/web/endpoint/LogoutEndpoint.java

@@ -72,7 +72,7 @@ public class LogoutEndpoint {
  		ModelAndView modelAndView = new ModelAndView();
  		authenticationRealm.logout(response);
  		
- 		if(reLoginUrl!=null){
+ 		if(reLoginUrl==null){
 	 		SavedRequest  firstSavedRequest = (SavedRequest)WebContext.getAttribute(WebConstants.FIRST_SAVED_REQUEST_PARAMETER);
 	 		reLoginUrl=WebContext.getHttpContextPath()+"/login";
 	 		if(firstSavedRequest!=null){