-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR(#92) from feature/member-inactive-#84 휴면 회원 처리 및 활성화 기능
- Loading branch information
Showing
7 changed files
with
231 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/resources/templates/main/page/activateMemberIssue.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<html xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="main/layout/layout"> | ||
|
||
<th:block layout:fragment="content"> | ||
<div class="container mt-3 mb-5"> | ||
<h1>휴면 계정 안내</h1> | ||
<p><span th:text="${memberName}"></span> 회원님의 계정은 3개월 이상 로그인하지 않아서 휴면 처리되었습니다.</p> | ||
|
||
<div class="alert alert-warning" role="alert"> | ||
마지막 로그인 일시: <span th:text="${memberLatestLogin}"></span> | ||
</div> | ||
|
||
<p>계속 서비스를 이용하시려면 <b>[휴면 해제하기]</b> 를 눌러 휴면 해제를 진행해주세요.</p> | ||
|
||
<div class="md-5"> | ||
<form action="/member/activation/issue" method="post"> | ||
<input type="hidden" name="memberId" th:value="${memberId}"> | ||
<input type="hidden" name="memberLatestLogin" th:value="${memberLatestLogin}"> | ||
<input type="hidden" name="memberName" th:value="${memberName}"> | ||
|
||
<button type="submit" class="btn btn-primary">휴면 해제하기</button> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
</th:block> |
65 changes: 65 additions & 0 deletions
65
src/main/resources/templates/main/page/activateMemberVerify.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<html xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="main/layout/layout"> | ||
|
||
|
||
<th:block layout:fragment="content"> | ||
<div class="container mt-3 mb-5"> | ||
<h1>휴면 계정 안내</h1> | ||
<p><span th:text="${memberName}"></span> 회원님의 계정은 3개월 이상 로그인하지 않아서 휴면 처리되었습니다.</p> | ||
|
||
<div class="alert alert-warning" role="alert"> | ||
마지막 로그인 일시: <span th:text="${memberLatestLogin}"></span> | ||
</div> | ||
|
||
<p>인증 번호가 발송되었습니다. 인증 번호를 입력 후 <b>[휴면 해제하기]</b> 를 눌러 휴면 해제를 완료해주세요.</p> | ||
|
||
<div class="md-5"> | ||
<form id="verifyActivationCodeForm" action="/member/activation/verify" method="post"> | ||
<div class="d-flex"> | ||
<input type="hidden" name="memberId" th:value="${memberId}"> | ||
<input id='activationCode' | ||
type="text" | ||
class="form-control col-md-2" | ||
name="activationCode" | ||
placeholder="인증 번호 입력"> | ||
|
||
<button id='activationCodeVerifyButton' | ||
type="submit" | ||
class="btn btn-outline-primary col-md-2 ml-2"> | ||
휴면 해제하기 | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
|
||
<script th:inline="javascript"> | ||
startTimer(); | ||
|
||
function startTimer() { | ||
let timeLeft = 300; | ||
let timerInterval = setInterval(function () { | ||
let minutes = Math.floor(timeLeft / 60); | ||
let seconds = timeLeft % 60; | ||
|
||
let formattedTime = padNumber(minutes) + ":" + padNumber(seconds); | ||
document.getElementById("activationCode").placeholder = "남은 시간: " + formattedTime; | ||
|
||
timeLeft--; | ||
|
||
if (timeLeft < 0) { | ||
clearInterval(timerInterval); | ||
document.getElementById("activationCode").placeholder = "시간이 초과되었습니다."; | ||
} | ||
}, 1000); | ||
} | ||
|
||
function padNumber(number) { | ||
return (number < 10 ? "0" : "") + number; | ||
} | ||
|
||
</script> | ||
</th:block> | ||
</html> |