소셜회원 가입시 회원구분 추가

dev_bert
jonghwan76 3 years ago
parent 3469ad4e48
commit 0bf3508665

@ -358,6 +358,14 @@ public class M_LoginController extends AbstractControllerManager{
return redirect_url;
}
/**
* 2 [] - ,,,
* @param model
* @param request
* @param response
* @param ra
* @return
*/
@RequestMapping(value="accountJoin", method = RequestMethod.POST)
public String accountJoin(@ModelAttribute("model") ModelMap model, HttpServletRequest request, HttpServletResponse response, RedirectAttributes ra) {
HttpSession session = request.getSession(false);
@ -377,7 +385,15 @@ public class M_LoginController extends AbstractControllerManager{
String password = RenaStringUtil.getData(paramMap, "password");
paramMap.put("password", RenaEncription.getInstance().getSHA256(password));
//세션에서 회원의 소셜타입을 가져옴.
DataMap session_rm_mem = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_MEMBER);
paramMap.put("social_type", RenaStringUtil.getData(session_rm_mem, "social_type"));
log.info("---- 소셜 타입 ---- : " + RenaStringUtil.getData(session_rm_mem, "social_type"));
DataMap rm_mem = loginBO.select_member_confirm_for_check_bding(paramMap);
//해당 이메일로 가입된 회원이 없을 경우 회원가입 3단계로 이동
if(RenaStringUtil.isNullOrEmpty(rm_mem)) {
// 회원 가입
Object obj = loginBO.insert_member(paramMap);
@ -472,10 +488,10 @@ public class M_LoginController extends AbstractControllerManager{
//소셜아이디로 회원가입이 안되어 있을경우 회원가입페이지로 이동
if(socialMemberMap == null) {
//소셜연동결과 전화번호값이 없으면 회원인증 화면으로 이동
//소셜연동결과 전화번호값이 없으면 휴대폰 회원인증 1단계 회원가입페이지 이동
if("".equals(userPhone)) {
redirect_url = "/m/login/view_join_member_01";
} else { //전화번호가 있으면 실명인증 없이 회원가입페이지 이동
} else { //전화번호가 있으면 실명인증 없이 2단계 회원가입페이지 이동
redirect_url = "redirect:/m/login/view_join_member_02.do";
}
session.setAttribute(M_Util.SESSION_RM_MEMBER, paramMap); //세션에 소셜에서 받은 회원정보 세팅

@ -402,6 +402,7 @@ public class M_Util {
paramMap.put("phone", userPhone.replaceAll("-",""));
paramMap.put("userEmail", userEmail);
paramMap.put("userNm", userNm);
paramMap.put("social_type", socialType);
log.debug("소셜번호:" + socialNo);
log.debug("전화번호:" + userPhone);

@ -178,6 +178,9 @@
<isNotEmpty property="agree_other">
,agree_other
,agree_other_dt
</isNotEmpty>
<isNotEmpty property="social_type">
,social_type
</isNotEmpty>
) VALUES (
NOW()
@ -205,6 +208,9 @@
<isNotEmpty property="agree_other">
,#agree_other#
,NOW()
</isNotEmpty>
<isNotEmpty property="social_type">
,#social_type#
</isNotEmpty>
)

@ -185,6 +185,9 @@
<isNotEmpty property="agree_other">
,agree_other
,agree_other_dt
</isNotEmpty>
<isNotEmpty property="social_type">
,social_type
</isNotEmpty>
) VALUES (
NOW()
@ -212,6 +215,9 @@
<isNotEmpty property="agree_other">
,#agree_other#
,NOW()
</isNotEmpty>
<isNotEmpty property="social_type">
,#social_type#
</isNotEmpty>
)

Loading…
Cancel
Save