|
|
@@ -7,6 +7,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.gagaframework.web.parameter.GagaParameterUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
@@ -2045,33 +2046,33 @@ public class TsfMypageController extends TsfBaseController {
|
|
|
/**
|
|
|
* 마이페이지 - 회원정보수정 화면
|
|
|
*
|
|
|
- * @param confirmYn - 정보확인여부
|
|
|
+ * @param
|
|
|
* @return ModelAndView
|
|
|
* @author jsshin
|
|
|
* @since 2021. 03. 15
|
|
|
*/
|
|
|
@RequestMapping("/customer/modify/form")
|
|
|
- public ModelAndView getCustomerModifyForm(@RequestParam(required = false) String confirmYn,
|
|
|
- @RequestParam(value = "sEncData", required = false) String sEncData ,
|
|
|
+ public ModelAndView getCustomerModifyForm(@RequestParam(value = "sEncData", required = false) String sEncData ,
|
|
|
@RequestParam(value = "authMethod", required = false) String authMethod,
|
|
|
HttpServletRequest request) {
|
|
|
-
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
String referer = StringUtils.defaultIfBlank(TsfSession.getHttpServletRequest().getHeader("referer"), "");
|
|
|
boolean redirect = false;
|
|
|
|
|
|
- log.info("referer1 ==> {}", referer);
|
|
|
- log.info("referer2 ==> {}", request.getHeader("Referer"));
|
|
|
+ GagaMap custInfoMap = GagaParameterUtil.getParameterMap(request);
|
|
|
+ Customer customer = new Customer();
|
|
|
+ customer.setPasswd(custInfoMap.getString("passwd"));
|
|
|
+ boolean isMatch = customerService.customerPasswordConfirm(customer);
|
|
|
|
|
|
if (StringUtils.isBlank(referer)) {
|
|
|
redirect = true;
|
|
|
}
|
|
|
|
|
|
- if (!referer.contains("/mypage/customer/confirm/form")) {
|
|
|
+ if (!isMatch) {
|
|
|
redirect = true;
|
|
|
}
|
|
|
|
|
|
- if (!"Y".equals(confirmYn)) {
|
|
|
+ if (!referer.contains("/mypage/customer/confirm/form")) {
|
|
|
redirect = true;
|
|
|
}
|
|
|
|