|
|
@@ -26,183 +26,18 @@
|
|
|
<h3>style24</h3>
|
|
|
</div>
|
|
|
<div class="cont_body">
|
|
|
- <form class="form_wrap form_col_c" role="form">
|
|
|
+ <div class="form_wrap form_col_c" role="form">
|
|
|
<div class="form_head">
|
|
|
<h4>아이디/비밀번호 찾기</h4>
|
|
|
</div>
|
|
|
<div class="registration_nav">
|
|
|
<ul>
|
|
|
- <li class="active"><a href="javascript:void(0)">아이디 찾기</a></li>
|
|
|
- <li><a href="javascript:void(0)">비밀번호 찾기</a></li>
|
|
|
+ <li><a href="javascript:void(0)" onclick="cfnGoToPage(_PAGE_CUSTOMER_ID_FIND);">아이디 찾기</a></li>
|
|
|
+ <li class="active"><a href="javascript:void(0)" onclick="cfnGoToPage(_PAGE_CUSTOMER_PWD_FIND);">비밀번호 찾기</a></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="registration_tap">
|
|
|
- <div class="form_group">
|
|
|
- <!-- 아이디찾기일경우 -->
|
|
|
- <div class="foldGroup checkcase">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <form class="form_wrap" role="form">
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit">
|
|
|
- <span>회원정보로 찾기</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="txt mb30">
|
|
|
- <p>등록된 내 회원정보로 찾을 수 있습니다.</p>
|
|
|
- </div>
|
|
|
- <div class="form_field">
|
|
|
- <label class="input_label sr-only">이름</label>
|
|
|
- <div class="ui_col_12">
|
|
|
- <div class="input_wrap">
|
|
|
- <input type="text" name="userName" placeholder="이름" id="txtName" class="form_control">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form_field">
|
|
|
- <label class="input_label sr-only">생년월일 8자리 (예:19880912)</label>
|
|
|
- <div class="ui_col_12">
|
|
|
- <div class="input_wrap">
|
|
|
- <input type="text" name="userBirth" placeholder="생년월일 8자리 (예:19880912)" id="txtBirth" class="form_control">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form_field">
|
|
|
- <label class="input_label sr-only">이메일</label>
|
|
|
- <div class="ui_col_12">
|
|
|
- <div class="input_wrap">
|
|
|
- <input type="text" name="userEmail" placeholder="이메일" id="txtEmail" class="form_control">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="btn_group_block ui_row mt20">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>확인</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <form class="form_wrap" role="form">
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit" style="width: inherit;">
|
|
|
- <span style="width: inherit;">휴대폰 본인인증으로 찾기</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="txt">
|
|
|
- <p>회원님의 명의로 등록된 휴대폰으로 본인확인을 진행합니다.</p>
|
|
|
- </div>
|
|
|
- <div class="ui_row mt20">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>본인명의 휴대폰으로 인증</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <form class="form_wrap" role="form">
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit" style="width: inherit;">
|
|
|
- <span style="width: inherit;">아이핀 인증으로 찾기</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="txt">
|
|
|
- <p>아이핀 인증을 통해 찾을 수 있습니다.</p>
|
|
|
- </div>
|
|
|
- <div class="ui_row mt20">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>아이핀 인증</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <!-- //아이디찾기일경우 -->
|
|
|
- <!-- 아이디찾기 성공일경우 -->
|
|
|
- <div class="find_result clear">
|
|
|
- <div class="form_info">
|
|
|
- <span class="ico_content_find"></span>
|
|
|
- <p>아이디 찾기 결과 안내</p>
|
|
|
- </div>
|
|
|
- <div class="form_print_bar mt40">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span class="t_span">아이디</span>
|
|
|
- <span class="c_primary bold" data-font="lato">I***D1</span>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <span class="t_span">가입일자</span>
|
|
|
- <span class="bold" data-font="lato">2020.12.22</span>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <span class="t_span">가입경로</span>
|
|
|
- <span class="bold" data-font="lato">YES24 연동</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div class="btn_group_block btn_group_md ui_row">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>로그인 하기</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- //아이디찾기 성공일경우 -->
|
|
|
- <!-- 회원정보로 아이디찾기 실패일경우 -->
|
|
|
- <div class="find_result clear">
|
|
|
- <div class="form_info">
|
|
|
- <span class="ico_content_none"></span>
|
|
|
- <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
- <p class="t_info mt10">
|
|
|
- 정확한 확인을 위해 휴대폰 인증/아이핀 인증을 통한<br>아이디 찾기를 진행해 주세요.
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="btn_group_block btn_group_md ui_row">
|
|
|
- <div class="ui_col_6">
|
|
|
- <button class="btn btn_primary btn_block"><span>회원가입</span></button>
|
|
|
- </div>
|
|
|
- <div class="ui_col_6">
|
|
|
- <button class="btn btn_dark btn_block"><span>다시 찾기</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- //회원정보로 아이디찾기 실패일경우 -->
|
|
|
- <!-- 휴대폰,아이핀 본인인증으로 아이디찾기 실패일경우 -->
|
|
|
- <div class="find_result clear">
|
|
|
- <div class="form_info">
|
|
|
- <span class="ico_content_none"></span>
|
|
|
- <p>입력한 정보와 일치하는 아이디가 존재하지 않습니다.</p>
|
|
|
- <p class="t_info mt10">
|
|
|
- <span class="c_primary">STYLE24의 새로운 가족이 되어 주세요!</span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="btn_group_block btn_group_md ui_row">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_primary btn_block"><span>회원가입</span></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- //휴대폰,아이핀 본인인증으로 아이디찾기 실패일경우 -->
|
|
|
- </div>
|
|
|
- <div class="form_group" >
|
|
|
+ <div class="form_group" style="display: block;">
|
|
|
<!-- 비밀번호찾기일경우 -->
|
|
|
<div class="foldGroup checkcase">
|
|
|
<ul>
|
|
|
@@ -225,8 +60,10 @@
|
|
|
<label class="input_label sr-only">아이디</label>
|
|
|
<div class="ui_col_12">
|
|
|
<div class="input_wrap">
|
|
|
- <input type="text" name="userId" placeholder="아이디" id="txtId" class="form_control">
|
|
|
- <button type="button" class="btn btn_primary"><span>확인</span></button>
|
|
|
+ <input type="text" name="custId" placeholder="아이디" id="txtId" class="form_control" maxlength="30"/>
|
|
|
+ <button type="button" class="btn btn_primary">
|
|
|
+ <span>확인</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -234,7 +71,7 @@
|
|
|
<label class="input_label sr-only">이름</label>
|
|
|
<div class="ui_col_12">
|
|
|
<div class="input_wrap">
|
|
|
- <input type="text" name="userName" placeholder="이름" id="txtName" class="form_control">
|
|
|
+ <input type="text" id="custNm" name="custNm" placeholder="이름" class="form_control" maxlength="30"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -242,69 +79,67 @@
|
|
|
<label class="input_label sr-only">이메일</label>
|
|
|
<div class="ui_col_12">
|
|
|
<div class="input_wrap">
|
|
|
- <input type="text" name="userEmail" placeholder="이메일" id="email" class="form_control">
|
|
|
+ <input type="text" id="email" name="email" placeholder="이메일" class="form_control" maxlength="30"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btn_group_block ui_row mt20">
|
|
|
<div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>확인</span></button>
|
|
|
+ <button type="button" id="btnInfoConfirm" class="btn btn_dark btn_block">
|
|
|
+ <span>확인</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <form action="" class="form_wrap" role="form">
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit" style="width: inherit;">
|
|
|
- <span style="width: inherit;">휴대폰 본인인증으로 찾기</span>
|
|
|
- </div>
|
|
|
+ <div class="fold_head">
|
|
|
+ <a href="javascript:void(0)">
|
|
|
+ <div>
|
|
|
+ <div class="fold_tit" style="width: inherit;">
|
|
|
+ <span style="width: inherit;">휴대폰 본인인증으로 찾기</span>
|
|
|
</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="txt">
|
|
|
- <p>회원님의 명의로 등록된 휴대폰으로 본인확인을 진행합니다.</p>
|
|
|
</div>
|
|
|
- <div class="ui_row mt20">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>본인명의 휴대폰으로 인증</span></button>
|
|
|
- </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="fold_cont">
|
|
|
+ <div class="txt">
|
|
|
+ <p>회원님의 명의로 등록된 휴대폰으로 본인확인을 진행합니다.</p>
|
|
|
+ </div>
|
|
|
+ <div class="ui_row mt20">
|
|
|
+ <div class="ui_col_12">
|
|
|
+ <button class="btn btn_dark btn_block"><span>본인명의 휴대폰으로 인증</span></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </form>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <form action="" class="form_wrap" role="form">
|
|
|
- <div class="fold_head">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <div>
|
|
|
- <div class="fold_tit" style="width: inherit;">
|
|
|
- <span style="width: inherit;">아이핀 인증으로 찾기</span>
|
|
|
- </div>
|
|
|
+ <div class="fold_head">
|
|
|
+ <a href="javascript:void(0)">
|
|
|
+ <div>
|
|
|
+ <div class="fold_tit" style="width: inherit;">
|
|
|
+ <span style="width: inherit;">아이핀 인증으로 찾기</span>
|
|
|
</div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="fold_cont">
|
|
|
- <div class="txt">
|
|
|
- <p>아이핀 인증을 통해 찾을 수 있습니다.</p>
|
|
|
</div>
|
|
|
- <div class="ui_row mt20">
|
|
|
- <div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>아이핀 인증</span></button>
|
|
|
- </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="fold_cont">
|
|
|
+ <div class="txt">
|
|
|
+ <p>아이핀 인증을 통해 찾을 수 있습니다.</p>
|
|
|
+ </div>
|
|
|
+ <div class="ui_row mt20">
|
|
|
+ <div class="ui_col_12">
|
|
|
+ <button class="btn btn_dark btn_block"><span>아이핀 인증</span></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </form>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!-- //비밀번호찾기일경우 -->
|
|
|
<!-- 비밀번호 재설정 -->
|
|
|
- <div class="find_result clear">
|
|
|
+ <div id="divNewPassword" class="find_result clear">
|
|
|
<div class="form_info">
|
|
|
<span class="ico_content_security"></span>
|
|
|
<p>안전을 위해 비밀번호를 변경하신 후 이용이 가능합니다.</p>
|
|
|
@@ -312,7 +147,7 @@
|
|
|
<div class="form_field mt40">
|
|
|
<label class="input_label sr-only">신규 비밀번호</label>
|
|
|
<div class="ui_col_12">
|
|
|
- <input type="password" name="userPassword" placeholder="신규 비밀번호" id="txtPassword">
|
|
|
+ <input type="password" id="password" name="password" placeholder="신규 비밀번호" >
|
|
|
<!-- case (사용불가 비밀번호일경우,사용가능한 비밀번호일경우) -->
|
|
|
<div class="help_block">
|
|
|
<!-- 사용불가 비밀번호일경우 -->
|
|
|
@@ -334,7 +169,7 @@
|
|
|
<div class="form_field">
|
|
|
<label class="input_label sr-only">비밀번호 확인</label>
|
|
|
<div class="ui_col_12">
|
|
|
- <input type="password" name="userConfirm" placeholder="비밀번호 확인" id="txtConfirm">
|
|
|
+ <input type="password" id="confirmPassword" name="confirmPassword" placeholder="비밀번호 확인">
|
|
|
<!-- case (비밀번호확인 틀렸을경우,비밀번호 일치할경우) -->
|
|
|
<div class="help_block">
|
|
|
<!-- 비밀번호확인 틀렸을경우 -->
|
|
|
@@ -344,9 +179,9 @@
|
|
|
<!-- //비밀번호확인 틀렸을경우 -->
|
|
|
<!-- 비밀번호 일치할경우 -->
|
|
|
<p class="mt10">
|
|
|
- <span class="c_black2">
|
|
|
- <i class="ico ico_check black mr5"></i>새 비밀번호가 일치합니다.
|
|
|
- </span>
|
|
|
+ <span class="c_black2">
|
|
|
+ <i class="ico ico_check black mr5"></i>새 비밀번호가 일치합니다.
|
|
|
+ </span>
|
|
|
</p>
|
|
|
<!-- //비밀번호 일치할경우 -->
|
|
|
</div>
|
|
|
@@ -355,13 +190,15 @@
|
|
|
</div>
|
|
|
<div class="btn_group_block btn_group_md ui_row">
|
|
|
<div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>변경 후 다시 로그인</span></button>
|
|
|
+ <button type="button" id="btnSavePassword" class="btn btn_dark btn_block">
|
|
|
+ <span>변경 후 다시 로그인</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- //비밀번호 재설정 -->
|
|
|
<!-- 임시비밀번호 발급 -->
|
|
|
- <div class="find_result clear">
|
|
|
+ <div id="divSendEmail" class="find_result clear">
|
|
|
<div class="form_info">
|
|
|
<span class="ico_content_mail"></span>
|
|
|
<p>아래의 이메일로 임시비밀번호가 발급되었습니다.</p>
|
|
|
@@ -374,14 +211,16 @@
|
|
|
</div>
|
|
|
<div class="btn_group_block btn_group_md ui_row">
|
|
|
<div class="ui_col_12">
|
|
|
- <button class="btn btn_dark btn_block"><span>로그인 하기</span></button>
|
|
|
+ <button type="button" class="btn btn_dark btn_block" onclick="cfnGoToPage(_PAGE_LOGIN);">
|
|
|
+ <span>로그인 하기</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- //임시비밀번호 발급 -->
|
|
|
</div>
|
|
|
</div>
|
|
|
- </form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -390,6 +229,89 @@
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
|
|
|
+var fnCheckPassword = function () {
|
|
|
+ let custId = $('#custId').val();
|
|
|
+ let password = $('#password').val();
|
|
|
+ let confirmPassword = $('#confirmPassword').val();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // 길이
|
|
|
+ if(!/^[a-zA-Z0-9!@#$%^&*()?_~]{6,15}$/.test(password)) {
|
|
|
+ console.log("비밀번호는 숫자, 영문, 특수문자 조합으로 6~15자리를 사용해야 합니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 영문, 숫자, 특수문자 2종 이상 혼용
|
|
|
+ var count = 0;
|
|
|
+ if(password.search(/[0-9]/g) != -1 ) count ++;
|
|
|
+ if(password.search(/[a-z]/ig) != -1 ) count ++;
|
|
|
+ if(password.search(/[!@#$%^&*()?_~]/g) != -1 ) count ++;
|
|
|
+ if(count < 2) {
|
|
|
+ console.log("비밀번호는 숫자, 영문, 특수문자를 두가지이상 혼용하여야 합니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 동일한 문자/숫자 4이상, 연속된 문자
|
|
|
+ if(/(\w)\1\1\1/.test(password) || isContinuedValue(password)) {
|
|
|
+ console.log("비밀번호에 4자 이상의 연속 또는 반복 문자 및 숫자를 사용하실 수 없습니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 아이디 포함 여부
|
|
|
+ if(password.search(custId)>-1) {
|
|
|
+ console.log("ID가 포함된 비밀번호는 사용하실 수 없습니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 재입력 일치 여부
|
|
|
+ if (password != confirmPassword) {
|
|
|
+ console.log("입력한 두 개의 비밀번호가 서로 일치하지 않습니다.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+function isContinuedValue(password) {
|
|
|
+ console.log("password = " + password);
|
|
|
+ var intCnt1 = 0;
|
|
|
+ var intCnt2 = 0;
|
|
|
+ var temp0 = "";
|
|
|
+ var temp1 = "";
|
|
|
+ var temp2 = "";
|
|
|
+ var temp3 = "";
|
|
|
+
|
|
|
+ for (var i = 0; i < password.length-3; i++) {
|
|
|
+ console.log("=========================");
|
|
|
+ temp0 = password.charAt(i);
|
|
|
+ temp1 = password.charAt(i + 1);
|
|
|
+ temp2 = password.charAt(i + 2);
|
|
|
+ temp3 = password.charAt(i + 3);
|
|
|
+
|
|
|
+ console.log(temp0)
|
|
|
+ console.log(temp1)
|
|
|
+ console.log(temp2)
|
|
|
+ console.log(temp3)
|
|
|
+
|
|
|
+ if (temp0.charCodeAt(0) - temp1.charCodeAt(0) == 1
|
|
|
+ && temp1.charCodeAt(0) - temp2.charCodeAt(0) == 1
|
|
|
+ && temp2.charCodeAt(0) - temp3.charCodeAt(0) == 1) {
|
|
|
+ intCnt1 = intCnt1 + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (temp0.charCodeAt(0) - temp1.charCodeAt(0) == -1
|
|
|
+ && temp1.charCodeAt(0) - temp2.charCodeAt(0) == -1
|
|
|
+ && temp2.charCodeAt(0) - temp3.charCodeAt(0) == -1) {
|
|
|
+ intCnt2 = intCnt2 + 1;
|
|
|
+ }
|
|
|
+ console.log("=========================");
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(intCnt1 > 0 || intCnt2 > 0);
|
|
|
+ return (intCnt1 > 0 || intCnt2 > 0);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/*]]>*/
|
|
|
</script>
|
|
|
|