내정보 > 비밀번호 확인 추가 + 값체크 추가.
This commit is contained in:
72
front/src/main/resources/templates/info/user/password.html
Normal file
72
front/src/main/resources/templates/info/user/password.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
|
||||
<div layout:fragment="content" th:classappend="'mypage-wrap'">
|
||||
<main id="content" role="main">
|
||||
<div class="inner">
|
||||
<hgroup class="tit-group">
|
||||
<h3>
|
||||
개인정보 보호를 위해 <br>
|
||||
<strong>비밀번호를 다시 입력</strong>해 주세요.
|
||||
</h3>
|
||||
<p>본인 확인 후 개인정보 변경이 가능합니다.</p>
|
||||
</hgroup>
|
||||
|
||||
<section class="form-group">
|
||||
<form method="post" name="reqForm" id="reqForm" onsubmit="formControl.authInfoUser();" th:action="@{/}" >
|
||||
|
||||
<div class="component-input" data-props-toggle-Password="true">
|
||||
<div class="input-label">
|
||||
<label for="temp_input_0001" class="label-txt">
|
||||
비밀번호
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field">
|
||||
<input type="password" id="temp_input_0001" placeholder="비밀번호 4자리를 입력해 주세요" name="password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="component-btns">
|
||||
<div class="btns-row">
|
||||
<button type="button" class="btn btn-full btn-l btn-primary" onclick="formControl.authInfoUser()">
|
||||
<span class="btn-txt">다음</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
let ENV = {
|
||||
httpUrl: {
|
||||
root: /*[[#{uri.front.info.user.path}]]*/'rootUrl',
|
||||
auth: /*[[|/api/front#{uri.front.info.user.path}/password/auth|]]*/'passwordAuthUrl',
|
||||
|
||||
},
|
||||
submitted: false,
|
||||
};
|
||||
|
||||
let formControl = {
|
||||
authInfoUser() {
|
||||
const f = document.reqForm;
|
||||
|
||||
const obj = $(f).serializeObject();
|
||||
ajaxUtil._ajaxAsync(
|
||||
ENV.httpUrl.auth,
|
||||
obj,
|
||||
function (rstData, status) {
|
||||
console.log(rstData.status)
|
||||
},
|
||||
);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</section>
|
||||
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user