style: 아이디 패스워드 찾기 결과 화면 수정

main
thkim 2024-07-25 17:58:05 +09:00
parent 5ae9b432ff
commit 54235f765c
2 changed files with 127 additions and 65 deletions

View File

@ -119,7 +119,8 @@ public class LoginController {
RedirectAttributes rda) throws Exception {
ModelAndView mv = new ModelAndView("body/account/id_post");
log.info("LoginController 아이디 찾기");
//위변조 체크
String hdnCertNum = request.getParameter("hdnCertNum");
@ -127,15 +128,11 @@ public class LoginController {
String name = "";
String DI = "";
log.info("LoginController 아이디 찾기 // hdnCertNum : " + hdnCertNum + " hdnCertification : " + hdnCertification + " cls : " + cls);
try {
log.info("LoginController 아이디 찾기 복호화 이전");
Map<String, String> certResult = MobileCertificationUtil.decryptCertData(hdnCertification, hdnCertNum);
log.info("LoginController 아이디 찾기 복호화 이후");
name = certResult.get("name");
DI = certResult.get("DI");
log.info("LoginController 아이디 찾기 // 복호화 값 name : " + name + " DI : " + DI);
}
catch(IndexOutOfBoundsException ex){
log.info("LoginController 아이디 찾기 잘못된 접근");
@ -160,7 +157,19 @@ public class LoginController {
map.put("name", name);
map.put("email", email);
log.info("LoginController 아이디 찾기 // 사용자 조회 전\n" + " cls : " + cls + " name : " + name + " email : " + email);
log.info(
"\n--------------------------------------------------------------\n" +
request.getRequestURI() + " " + " LoginController 아이디 찾기" +
"\n--------------------------------------------------------------\n" +
"hdnCertNum:[" + hdnCertNum + "]\n" +
"hdnCertification:[" + hdnCertification + "]\n" +
"cls:[" + cls + "]\n" +
"email:[" + email + "]\n" +
"name:[" + name + "]\n" +
"DI:[" + DI + "]\n" +
"\n--------------------------------------------------------------\n"
);
Map<String, Object> result = loginService.selectSearchId(map);
map.clear();

View File

@ -4,64 +4,117 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" HREF="/css/style.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table id="Table_Main" width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="./images/join/top_tit_id.gif" width="682"
height="60" /></td>
</tr>
<tr>
<td align="right">
<a href="<c:url value='/topMenuSelect.do?url=joinsearch' />"><img src="./images/account/btn_id.gif"></a><img
src="./images/account/spacer.gif" width=5><a href="<c:url value='topMenuSelect.do?url=pwsearch' />"><img
src="./images/account/btn_pass.gif"></a>
</td>
</tr>
<tr>
<td align="center">
<table width=570 height=200 border=0 cellpadding=0 cellspacing=0
id="Table_Window">
<tr>
<td align="left">
<strong><h4>아이디 / 비밀번호 찾기 결과</h4></strong>
</td>
</tr>
<tr >
<td height="5"></td>
</tr>
<tr><td>
<table width=557 height=200 background="./images/account/idend_back.gif">
<tr>
<td width=557 height=64 align="center" valign="middle"
class="list_content" color="black"><font color="#FFFFFF"><b>
${username}님 께서 사용중인 아이디는 : ${userid}입니다.
가입하신 날짜는 : ${datetime} 입니다.</b></font> </td>
</tr>
</table>
</td></tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td>
<img src="./images/ico_idpa_point.gif">&nbsp;변경하신 내용이 정상적으로 적용되지 않는 경우에는
<br>
&nbsp;&nbsp;&nbsp;&nbsp;관리자에게 문의바랍니다.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;(담당자 : 박동현 연구원 /031-910-0402)
</td>
</tr>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<title>아이디 / 비밀번호 찾기 결과</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
</table>
</td>
</tr>
<tr>
<td height=50>&nbsp;</td>
</tr>
</table>
<style>
body {
font-family: 'Noto Sans KR', sans-serif;
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
}
#main-container {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
padding: 20px;
}
#result-header {
background-color: #ffffff;
text-align: center;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
width: 100%;
padding: 10px;
margin-bottom: 20px;
}
#result-header h2 {
font-size: 20px;
margin: 0;
}
#result-content {
background-color: #ffffff;
border: 1px solid #f1f1f1;
width: 100%;
max-width: 600px;
padding: 20px;
text-align: center;
}
#result-content p {
font-size: 16px;
color: #333333;
line-height: 1.5;
}
#result-content b {
font-weight: bold;
}
.btn {
padding: 10px 20px;
background-color: #0f5aa9;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
transition: color 2s ease; /* 색상 변경에 0.5초 동안 ease 효과 적용 */
}
.btn:hover {
background-color: #3d85d1;
color: white;
}
.btn-normal {
background-color: #364657;
color: white;
}
.btn-normal:hover {
background-color: #2d5987;
color: white;
}
#result-footer {
text-align: center;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container">
<header id="result-header">
<h2>아이디 / 비밀번호 찾기 결과</h2>
</header>
<main id="result-content">
<p>
<span style="font-size: 20px;"><b>${username}</b>님의 계정정보</span><br />
<br />
가입 아이디 : <b>${userid}</b><br />
가입한 날짜 : <b>${datetime}</b>
</p>
<button type="button" class="btn" onclick="location.href='<c:url value="/" />'">메인화면 이동</button>
<br />
<br />
<p>
<img src="./images/ico_idpa_point.gif" alt="안내 아이콘">&nbsp;변경하신 내용이 정상적으로 적용되지 않는 경우에는 관리자에게 문의바랍니다.<br />
&nbsp;&nbsp;&nbsp;&nbsp;(담당자 : 류지송 연구원 /031-995-0934)
</p>
</main>
<footer id="result-footer">
<button class="btn btn-normal" onclick="location.href='<c:url value="/topMenuSelect.do?url=joinsearch" />'">아이디 찾기</button>
<button class="btn btn-normal" onclick="location.href='<c:url value="topMenuSelect.do?url=pwsearch" />'">비밀번호 찾기</button>
</footer>
</div>
</body>
</html>