아이디/비밀번호 찾기 수정(2)

This commit is contained in:
김현욱
2025-12-24 10:47:11 +09:00
parent 0a695e95f2
commit c99e76fc12
2 changed files with 26 additions and 17 deletions

View File

@@ -44,6 +44,9 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import java.math.BigInteger; import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@@ -924,6 +927,10 @@ public class MbrController {
sopmalVo.setSopmalCd(vo.getSopmalCd()); sopmalVo.setSopmalCd(vo.getSopmalCd());
sopmalInfoMap = maSopmalService.selectBOSopmalFooterInfo(sopmalVo); sopmalInfoMap = maSopmalService.selectBOSopmalFooterInfo(sopmalVo);
DataMap sopmalInfo = (DataMap) sopmalInfoMap.get("sopmalInfo"); DataMap sopmalInfo = (DataMap) sopmalInfoMap.get("sopmalInfo");
LocalDate today = LocalDate.now();
LocalTime currentTime = LocalTime.now();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
String formatedNow = currentTime.format(formatter);
/** 신규 패스워드 자동발송 */ /** 신규 패스워드 자동발송 */
if (content.get("result").equals("success")) { if (content.get("result").equals("success")) {
@@ -938,9 +945,11 @@ public class MbrController {
paramMap.put("recptnNb", vo.getMbtlnb()); paramMap.put("recptnNb", vo.getMbtlnb());
paramMap.put("recpntEmail", vo.getEmail()); paramMap.put("recpntEmail", vo.getEmail());
// SMS // EMAIL
paramMap.put("userid", vo.getMbrId());
paramMap.put("shopName", sopmalInfo.get("sopmalNm")); paramMap.put("shopName", sopmalInfo.get("sopmalNm"));
paramMap.put("password", content.get("newPassword")); paramMap.put("password", content.get("newPassword"));
paramMap.put("regist_date", today+" "+formatedNow);
boMssageService.insertBOAtmcsndng(paramMap); boMssageService.insertBOAtmcsndng(paramMap);
} }

View File

@@ -290,7 +290,7 @@
$('.certNb').attr("readonly", false); $('.certNb').attr("readonly", false);
clearInterval(countdown); clearInterval(countdown);
seconds = 180; seconds = 300;
fn_set_timeOut(); fn_set_timeOut();
countdown = setInterval(fn_set_timeOut, 1000); countdown = setInterval(fn_set_timeOut, 1000);
@@ -373,13 +373,13 @@
} }
/* ******************************************************** /* ********************************************************
* 타이머 정지 함수 * 타이머 정지 함수 (이메일)
******************************************************** */ ******************************************************** */
const fn_stop_email_timer = function() { const fn_stop_email_timer = function() {
if (timerRunning) { if (timerRunning) {
clearInterval(countdown); clearInterval(countdown);
$('.timer').text('03:00'); $('.timer').text('05:00');
$('.certNb').val(''); $('.certNb').val('');
$('.emailAuthContent').hide(); $('.emailAuthContent').hide();
@@ -469,13 +469,13 @@
if (findType === 'id') { if (findType === 'id') {
url = '<c:url value="/sopmal/mbr/selectIdSearchEmail"/>'; url = '<c:url value="/sopmal/mbr/selectIdSearchEmail"/>';
mbrNm = $('#srchIdMbrNm').val().trim(); mbrNm = $('#srchIdMbrNm').val().trim();
mbrEmail = $('#srchIdEmail').val().trim().replace(/-/g, ''); mbrEmail = $('#srchIdEmail').val().trim();
} else { } else {
url = '<c:url value="/sopmal/mbr/selectPasswordSearchEmail"/>'; url = '<c:url value="/sopmal/mbr/selectPasswordSearchEmail"/>';
mbrNm = $('#srchPsMbrNm').val().trim(); mbrNm = $('#srchPsMbrNm').val().trim();
mbrId = $('#srchPsMbrId').val().trim(); mbrId = $('#srchPsMbrId').val().trim();
mbrEmail = $('#srchPsEmail').val().trim().replace(/-/g, ''); mbrEmail = $('#srchPsEmail').val().trim();
} }
let params = { let params = {
@@ -510,8 +510,8 @@
$('#resPswdForm').show(); $('#resPswdForm').show();
if(result.result == "success"){ if(result.result == "success"){
let message = '회원님의 휴대폰(' + fn_hide_numbers(mbtlnb)+ ')'; let message = '회원님의 이메일(' + mbrEmail + ')';
$('#resPswdForm').find('.mbph').text(message); $('#resPswdForm').find('.mbem').text(message);
$('.findSuccess').show(); $('.findSuccess').show();
$('.findFail').hide(); $('.findFail').hide();
} }
@@ -712,7 +712,7 @@
<%-- <p class="login__inputBox__alertText" id="srchIdSendungNbAlert">인증번호를 입력해 주세요.</p>--%> <%-- <p class="login__inputBox__alertText" id="srchIdSendungNbAlert">인증번호를 입력해 주세요.</p>--%>
<div class="inputWithBtn"> <div class="inputWithBtn">
<input type="text" class="input-text full certInp" id="srchIdEmail" name="mbrEmail" title="휴대폰" placeholder="이메일을 입력해주세요"> <input type="text" class="input-text full certInp" id="srchIdEmail" name="mbrEmail" title="이메일" placeholder="이메일을 입력해주세요" maxlength="190">
<button type="button" class="btn md theme outline emailAuthBtn"><spring:message code="button.certificationEmail"/></button> <button type="button" class="btn md theme outline emailAuthBtn"><spring:message code="button.certificationEmail"/></button>
<!-- 인증완료시 버튼 --> <!-- 인증완료시 버튼 -->
<button type="button" class="btn md outline emailAuthOkBtn" style="display:none;"><spring:message code="button.certificationDone"/></button> <button type="button" class="btn md outline emailAuthOkBtn" style="display:none;"><spring:message code="button.certificationDone"/></button>
@@ -771,7 +771,7 @@
<%-- </div>--%> <%-- </div>--%>
<%-- <p class="login__inputBox__alertText" id="srchPsSendungNbAlert">인증번호를 입력해 주세요.</p>--%> <%-- <p class="login__inputBox__alertText" id="srchPsSendungNbAlert">인증번호를 입력해 주세요.</p>--%>
<div class="inputWithBtn"> <div class="inputWithBtn">
<input type="text" class="input-text full certInp" id="srchPsEmail" name="mbrEmail" title="이메일" placeholder="이메일을 입력해주세요"> <input type="text" class="input-text full certInp" id="srchPsEmail" name="mbrEmail" title="이메일" placeholder="이메일을 입력해주세요" maxlength="190">
<button type="button" class="btn md theme outline emailAuthBtn"><spring:message code="button.certificationEmail"/></button> <button type="button" class="btn md theme outline emailAuthBtn"><spring:message code="button.certificationEmail"/></button>
<!-- 인증완료시 버튼 --> <!-- 인증완료시 버튼 -->
<button type="button" class="btn md outline emailAuthOkBtn" style="display:none;"><spring:message code="button.certificationDone"/></button> <button type="button" class="btn md outline emailAuthOkBtn" style="display:none;"><spring:message code="button.certificationDone"/></button>
@@ -792,24 +792,24 @@
<div class="boxTab__content login-content" id="resPswdForm" style="display: none;"> <div class="boxTab__content login-content" id="resPswdForm" style="display: none;">
<div class="login__findResult"> <div class="login__findResult">
<p class="findSuccess"> <p class="findSuccess">
<em class="mbph"></em>으로<br>임시 비밀번호가 <em class="mbem"></em>으로<br>임시 비밀번호가
발송되었습니다. 발송되었습니다.
<br> <br>
SMS를 확인 부탁 드립니다. 이메일을 확인 부탁 드립니다.
</p> </p>
<p class="findFail"> <p class="findFail">
<span style="color:red;">일치하는 정보가 없습니다.</span><br>아이디 찾기 방법을 변경하거나 회원가입을 해주세요. <span style="color:red;">일치하는 정보가 없습니다.</span><br>아이디 찾기 방법을 변경하거나 회원가입을 해주세요.
</p> </p>
</div> </div>
<a href="<c:url value='/login'/>" class="btn xl full dark login__loginBtn findSuccess">로그인</a> <a href="<c:url value='/sopmal/login'/>" class="btn xl full dark login__loginBtn findSuccess">로그인</a>
<div class="login__btnContainer-half findFail"> <div class="login__btnContainer-half findFail">
<button type="button" class="btn xl full outline login__loginBtn" onclick="fn_move_tapFindPwsd();">비밀번호 찾기</button> <button type="button" class="btn xl full outline login__loginBtn" onclick="fn_move_tapFindPwsd();">비밀번호 찾기</button>
<a href="<c:url value='/sopmal/mbr/selectJoinGuidance'/>" class="btn xl full dark login__loginBtn">회원가입</a> <a href="<c:url value='/sopmal/mbr/selectJoinGuidance'/>" class="btn xl full dark login__loginBtn">회원가입</a>
</div> </div>
<p class="textInfo findSuccess"><i class="icon icon_textInfo--sm"></i>SNS 계정으로 가입한 회원의 비밀번호는 저장하지 있지 않으며, 해당 <%-- <p class="textInfo findSuccess"><i class="icon icon_textInfo--sm"></i>SNS 계정으로 가입한 회원의 비밀번호는 저장하지 있지 않으며, 해당--%>
SNS <%-- SNS--%>
서비스 제공시에 문의하시길 바랍니다. <%-- 서비스 제공시에 문의하시길 바랍니다.--%>
</p> <%-- </p>--%>
</div> </div>
</div> </div>
</div> </div>