|
|
|
@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import org.springframework.web.context.support.WebApplicationContextUtils;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
|
|
|
|
|
import kr.xit.framework.biz.cmm.model.XitUserInfoVO;
|
|
|
|
@ -73,8 +74,8 @@ public class XitLoginController {
|
|
|
|
|
* @return 로그인 페이지
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "actionMain", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String actionMain(HttpServletResponse response, HttpServletRequest request, ModelMap model)
|
|
|
|
|
@RequestMapping(value = "/actionMain")
|
|
|
|
|
public String actionMain()
|
|
|
|
|
throws Exception {
|
|
|
|
|
|
|
|
|
|
// 1. Spring Security 사용자권한 처리
|
|
|
|
@ -111,7 +112,7 @@ public class XitLoginController {
|
|
|
|
|
* @author: 박민규
|
|
|
|
|
* @date: 2020. 3. 23.
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "actionSecurityLogin", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
@RequestMapping(value = "/actionSecurityLogin")
|
|
|
|
|
public String actionSecurityLogin(@ModelAttribute("loginVO") XitLoginVO loginVO, HttpServletResponse response,
|
|
|
|
|
HttpServletRequest request, ModelMap model, @RequestParam Map<String, String> paraMap) throws Exception {
|
|
|
|
|
|
|
|
|
@ -195,8 +196,8 @@ public class XitLoginController {
|
|
|
|
|
* @return String
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "actionLogout", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String actionLogout(HttpServletRequest request, ModelMap model) throws Exception {
|
|
|
|
|
@RequestMapping(value = "/actionLogout")
|
|
|
|
|
public String actionLogout(HttpServletRequest request) {
|
|
|
|
|
request.getSession().setAttribute("XitLoginSession", null);
|
|
|
|
|
|
|
|
|
|
return "redirect:/egov_security_logout.do";
|
|
|
|
@ -207,7 +208,7 @@ public class XitLoginController {
|
|
|
|
|
* @return String
|
|
|
|
|
* @exception Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value="accessDenied", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
@RequestMapping(value="accessDenied")
|
|
|
|
|
public void accessDenied(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
|
|
/* ======================================================
|
|
|
|
|
* 2020.11.24. 박민규
|
|
|
|
@ -266,27 +267,28 @@ public class XitLoginController {
|
|
|
|
|
* @throws Exception
|
|
|
|
|
* @date: 2020. 10. 21.
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "FindId_{page}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String FindId_page_popup(Model model
|
|
|
|
|
, HttpSession session
|
|
|
|
|
, @PathVariable String page
|
|
|
|
|
, @ModelAttribute("xitLoginVO") XitLoginVO vo
|
|
|
|
|
) throws Exception{
|
|
|
|
|
@RequestMapping(value = "/findIdPopup/{page}")
|
|
|
|
|
public ModelAndView findIdPopup(@PathVariable String page, @ModelAttribute("xitLoginVO") XitLoginVO vo) throws Exception{
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
|
|
switch (page) {
|
|
|
|
|
case "input": //아이디 찾기 -정보입력 페이지
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findIdFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
case "inputEvr": //(모든사용자)아이디 찾기 -정보입력 페이지
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findIdEvrFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "result": //아이디 찾기 -결과
|
|
|
|
|
XitLoginVO loginVO = xitLoginService.findId(vo);
|
|
|
|
|
model.addAttribute("userId",loginVO.getId());
|
|
|
|
|
mav.addObject("userId",loginVO.getId());
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findIdResultFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
throw new RuntimeException("유효하지 않은 요청 입니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/XitFindId_"+page+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal();
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -302,26 +304,26 @@ public class XitLoginController {
|
|
|
|
|
* @author: 김동규
|
|
|
|
|
* @date: 2020. 10. 21.
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "FindPwd_{page}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String FindPwd_page_popup(ModelMap model
|
|
|
|
|
, HttpSession session
|
|
|
|
|
, @ModelAttribute("xitUserInfoVO") XitUserInfoVO xitUserInfoVO
|
|
|
|
|
, @PathVariable String page
|
|
|
|
|
) throws IOException, SQLException, RuntimeException {
|
|
|
|
|
@RequestMapping(value = "findPwdPopup/{page}")
|
|
|
|
|
public ModelAndView findPwdPopup(@ModelAttribute("xitUserInfoVO") XitUserInfoVO xitUserInfoVO, @PathVariable String page) throws RuntimeException {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
|
|
switch (page) {
|
|
|
|
|
case "input": //비밀번호 찾기 -정보입력 페이지
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findPwdFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
case "inputEvr": //(모든사용자)비밀번호 찾기 -정보입력 페이지
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findPwdEvrFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "result": //비밀번호 찾기 -결과
|
|
|
|
|
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/findPwdResultFormPopup.popup");
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
throw new RuntimeException("유효하지 않은 요청 입니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"login/XitFindPwd_"+page+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal();
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -379,7 +381,7 @@ public class XitLoginController {
|
|
|
|
|
model.addAttribute("failDetail", failDetail);
|
|
|
|
|
model.addAttribute("temp_pwd", vo.getPassword());
|
|
|
|
|
|
|
|
|
|
sLocationUrl = "forward:/login/FindPwd_result_popup.do";
|
|
|
|
|
sLocationUrl = "forward:/login/findPwdPopup/result.do";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
// case "delete": //삭제
|
|
|
|
|