|
|
@ -165,8 +165,10 @@ public class XitLoginController extends AbstractController {
|
|
|
|
throw new IllegalStateException("No AuthenticationProcessingFilter");
|
|
|
|
throw new IllegalStateException("No AuthenticationProcessingFilter");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
springSecurity.doFilter(new RequestWrapperForSecurity(request, xitLoginVO.getUserSe() + xitLoginVO.getId(),
|
|
|
|
springSecurity.doFilter(new RequestWrapperForSecurity(request,
|
|
|
|
xitLoginVO.getUniqId()), response, null);
|
|
|
|
xitLoginVO.getUniqId(),
|
|
|
|
|
|
|
|
xitLoginVO.getPasswd()),
|
|
|
|
|
|
|
|
response, null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xitLoginService.actionLoginSuccess();//로그인 Log 생성
|
|
|
|
xitLoginService.actionLoginSuccess();//로그인 Log 생성
|
|
|
@ -391,7 +393,7 @@ public class XitLoginController extends AbstractController {
|
|
|
|
model.addAttribute("result", result?"Y":"N");
|
|
|
|
model.addAttribute("result", result?"Y":"N");
|
|
|
|
model.addAttribute("message", message);
|
|
|
|
model.addAttribute("message", message);
|
|
|
|
model.addAttribute("failDetail", failDetail);
|
|
|
|
model.addAttribute("failDetail", failDetail);
|
|
|
|
model.addAttribute("temp_pwd", vo.getPasswd());
|
|
|
|
model.addAttribute("tempPwd", vo.getPasswd());
|
|
|
|
|
|
|
|
|
|
|
|
sLocationUrl = "forward:/login/findPwdPopup/result.do";
|
|
|
|
sLocationUrl = "forward:/login/findPwdPopup/result.do";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -458,14 +460,6 @@ public class XitLoginController extends AbstractController {
|
|
|
|
USER_SE userSe = USER_SE.valueOf(loginVO.getUserSe());
|
|
|
|
USER_SE userSe = USER_SE.valueOf(loginVO.getUserSe());
|
|
|
|
if(!XitCmmnUtil.isEmpty(userSe)) {
|
|
|
|
if(!XitCmmnUtil.isEmpty(userSe)) {
|
|
|
|
switch (userSe) {
|
|
|
|
switch (userSe) {
|
|
|
|
case GNR: //일반회원
|
|
|
|
|
|
|
|
if(XitCmmnUtil.notEmpty(MAIN_PAGE_GNR))
|
|
|
|
|
|
|
|
url = MAIN_PAGE_GNR;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ENT: //기업회원
|
|
|
|
|
|
|
|
if(XitCmmnUtil.notEmpty(MAIN_PAGE_ENT))
|
|
|
|
|
|
|
|
url = MAIN_PAGE_ENT;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case USR: //업무사용자
|
|
|
|
case USR: //업무사용자
|
|
|
|
if(XitCmmnUtil.notEmpty(MAIN_PAGE_USR))
|
|
|
|
if(XitCmmnUtil.notEmpty(MAIN_PAGE_USR))
|
|
|
|
url = MAIN_PAGE_USR;
|
|
|
|
url = MAIN_PAGE_USR;
|
|
|
@ -483,13 +477,13 @@ public class XitLoginController extends AbstractController {
|
|
|
|
|
|
|
|
|
|
|
|
class RequestWrapperForSecurity extends HttpServletRequestWrapper {
|
|
|
|
class RequestWrapperForSecurity extends HttpServletRequestWrapper {
|
|
|
|
private String username = null;
|
|
|
|
private String username = null;
|
|
|
|
private String passwd = null;
|
|
|
|
private String password = null;
|
|
|
|
|
|
|
|
|
|
|
|
public RequestWrapperForSecurity(HttpServletRequest request, String username, String passwd) {
|
|
|
|
public RequestWrapperForSecurity(HttpServletRequest request, String id, String passwd) {
|
|
|
|
super(request);
|
|
|
|
super(request);
|
|
|
|
|
|
|
|
|
|
|
|
this.username = username;
|
|
|
|
this.username = id;
|
|
|
|
this.passwd = passwd;
|
|
|
|
this.password = passwd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -509,7 +503,7 @@ class RequestWrapperForSecurity extends HttpServletRequestWrapper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (name.equals("xit_security_password")) {
|
|
|
|
if (name.equals("xit_security_password")) {
|
|
|
|
return passwd;
|
|
|
|
return password;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return super.getParameter(name);
|
|
|
|
return super.getParameter(name);
|
|
|
|