-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from Gamegoo-repo/fix/296
[Fix/296] ์ธ์ฆ์ฝ๋ ๋ฉ์ผ ์ ๋ชฉ ๋ฐ ๋งค์นญ SUCCESS internal API endpoint ์์
- Loading branch information
Showing
2 changed files
with
148 additions
and
145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,9 +88,9 @@ public Member joinMember(String email, String password, String gameName, String | |
.profileImage(randomProfileImage) | ||
.blind(false) | ||
.mike(false) | ||
.mainPosition(0) | ||
.subPosition(0) | ||
.wantPosition(0) | ||
.mainPosition(0) | ||
.subPosition(0) | ||
.wantPosition(0) | ||
.mannerLevel(1) | ||
.isAgree(isAgree) | ||
.build(); | ||
|
@@ -128,17 +128,18 @@ public Member joinMember(String email, String password, String gameName, String | |
|
||
// ํ์๊ฐ์ ์๋ฃ๋ ์ฌ์ฉ์ ์ ๋ณด ๋ก๊ทธ๋ก ์ถ๋ ฅ | ||
log.info("ํ์๊ฐ์ ์๋ฃ - ์ด๋ฉ์ผ: {}, ํ๋กํ ์ด๋ฏธ์ง: {}, ์ํ์ฌ๋ช : {}, ํ๊ทธ: {}, ํฐ์ด: {}, ๋ญํฌ: {}", | ||
member.getEmail(), member.getProfileImage(), member.getGameName(), member.getTag(), member.getTier(), member.getRank()); | ||
|
||
member.getEmail(), member.getProfileImage(), member.getGameName(), member.getTag(), | ||
member.getTier(), member.getRank()); | ||
|
||
return member; | ||
} | ||
|
||
/** | ||
* ํ์๊ฐ์ ์ฉ ์ด๋ฉ์ผ ์ค๋ณต ํ์ธ ๊ฒ์ฆ | ||
* | ||
* @param email | ||
*/ | ||
public void verifyEmailforNewUser(String email){ | ||
public void verifyEmailforNewUser(String email) { | ||
// ํด๋น ์ด๋ฉ์ผ์ด DB์ ์๋์ง ํ์ธํ๊ธฐ | ||
boolean isPresent = memberRepository.findByEmail(email).isPresent(); | ||
|
||
|
@@ -151,9 +152,10 @@ public void verifyEmailforNewUser(String email){ | |
|
||
/** | ||
* ๋น๋ฐ๋ฒํธ ์ฐพ๊ธฐ์ฉ ์ด๋ฉ์ผ ์ค๋ณต ํ์ธ ๊ฒ์ฆ | ||
* | ||
* @param email | ||
*/ | ||
public void verifyEmailforExistUser(String email){ | ||
public void verifyEmailforExistUser(String email) { | ||
// ํด๋น ์ด๋ฉ์ผ์ด DB์ ์๋์ง ํ์ธํ๊ธฐ | ||
boolean isPresent = memberRepository.findByEmail(email).isPresent(); | ||
|
||
|
@@ -210,7 +212,7 @@ public MemberResponse.RefreshTokenResponseDTO verifyRefreshToken(String refresh_ | |
member.updateRefreshToken(new_refresh_token); | ||
memberRepository.save(member); | ||
|
||
return new MemberResponse.RefreshTokenResponseDTO(id,access_token, new_refresh_token); | ||
return new MemberResponse.RefreshTokenResponseDTO(id, access_token, new_refresh_token); | ||
} | ||
|
||
/** | ||
|
@@ -262,7 +264,7 @@ private void sendEmailInternal(String email, String certificationNumber) { | |
String htmlContent = getCertificationMessage(certificationNumber); | ||
|
||
mimeMessageHelper.setTo(email); | ||
mimeMessageHelper.setSubject("GamgGoo ์ด๋ฉ์ผ ์ธ์ฆ ์ฝ๋"); | ||
mimeMessageHelper.setSubject("GameGoo ์ด๋ฉ์ผ ์ธ์ฆ ์ฝ๋"); | ||
mimeMessageHelper.setText(htmlContent, true); | ||
log.debug("Prepared email message for email: {}", email); | ||
|
||
|
@@ -286,141 +288,142 @@ private void sendEmailInternal(String email, String certificationNumber) { | |
*/ | ||
private String getCertificationMessage(String certificationNumber) { | ||
String certificationMessage = "" | ||
+"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" + | ||
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" + | ||
" <head>\n" + | ||
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" + | ||
" <title>Gamegoo ์ด๋ฉ์ผ ์ธ์ฆ</title>\n" + | ||
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n" + | ||
" </head>\n" + | ||
" <body>\n" + | ||
" <table\n" + | ||
" style=\"\n" + | ||
" width: 628px;\n" + | ||
" box-sizing: border-box;\n" + | ||
" border-collapse: collapse;\n" + | ||
" background-color: #ffffff;\n" + | ||
" border: 1px solid #c0c0c0;\n" + | ||
" text-align: left;\n" + | ||
" margin: 0 auto;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td>\n" + | ||
" <table\n" + | ||
" cellpadding=\"0\"\n" + | ||
" cellspacing=\"0\"\n" + | ||
" style=\"width: 628px; height: 521px; padding: 53px 62px 42px 62px\"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-bottom: 11.61px\">\n" + | ||
" <img\n" + | ||
" src=\"https://ifh.cc/g/BY3XG2.png\"\n" + | ||
" style=\"display: block\"\n" + | ||
" width=\"137\"\n" + | ||
" height=\"24\"\n" + | ||
" alt=\"Gamegoo\"\n" + | ||
" />\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 20px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 25px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 400;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ์ธ์ฆ์ฝ๋๋ฅผ ํ์ธํด์ฃผ์ธ์\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 38px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #5a42ee;\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-size: 32px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 700;\n" + | ||
" line-height: 150%;\n" + | ||
" margin-bottom: 30px;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
certificationNumber+ | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 30px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 18px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 400;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ์ด๋ฉ์ผ ์ธ์ฆ ์ ์ฐจ์ ๋ฐ๋ผ ์ด๋ฉ์ผ ์ธ์ฆ์ฝ๋๋ฅผ ๋ฐ๊ธํด๋๋ฆฝ๋๋ค.\n" + | ||
" ์ธ์ฆ์ฝ๋๋ ์ด๋ฉ์ผ ๋ฐ์ก์์ ์ผ๋ก๋ถํฐ 3๋ถ ๋์ ์ ํจํฉ๋๋ค.<br /><br />\n" + | ||
" ๋ง์ฝ ๋ณธ์ธ ์์ฒญ์ ์ํ ์ด๋ฉ์ผ ์ธ์ฆ์ด ์๋๋ผ๋ฉด,<br />\n" + | ||
" [email protected]์ผ๋ก ๊ด๋ จ ๋ด์ฉ์ ์ ๋ฌํด ์ฃผ์ธ์.<br /><br />\n" + | ||
"\n" + | ||
" ๊ฐ์ฌํฉ๋๋ค.\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" <table\n" + | ||
" cellpadding=\"0\"\n" + | ||
" cellspacing=\"0\"\n" + | ||
" style=\"\n" + | ||
" width: 628px;\n" + | ||
" height: 292px;\n" + | ||
" padding: 37px 0px 153px 62px;\n" + | ||
" background: #f7f7f9;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td>\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #606060;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 11px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 500;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ๋ณธ ๋ฉ์ผ์ ๋ฐ์ ์ ์ฉ์ผ๋ก ํ์ ๋์ง ์์ต๋๋ค.<br />\n" + | ||
" ๊ถ๊ธํ์ ์ ์ ๊ฒ๊ตฌ ์ด๋ฉ์ผ์ด๋ ์นด์นด์ค ์ฑ๋์ ํตํด\n" + | ||
" ๋ฌธ์ํ์๊ธฐ ๋ฐ๋๋๋ค.<br /><br />\n" + | ||
" email: [email protected]<br />\n" + | ||
" kakao: https://pf.kakao.com/_Rrxiqn<br />\n" + | ||
" copyright 2024. GameGoo All Rights Reserved.<br />\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" </body>\n" + | ||
"</html>\n"; | ||
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" | ||
+ | ||
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" + | ||
" <head>\n" + | ||
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" + | ||
" <title>Gamegoo ์ด๋ฉ์ผ ์ธ์ฆ</title>\n" + | ||
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n" + | ||
" </head>\n" + | ||
" <body>\n" + | ||
" <table\n" + | ||
" style=\"\n" + | ||
" width: 628px;\n" + | ||
" box-sizing: border-box;\n" + | ||
" border-collapse: collapse;\n" + | ||
" background-color: #ffffff;\n" + | ||
" border: 1px solid #c0c0c0;\n" + | ||
" text-align: left;\n" + | ||
" margin: 0 auto;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td>\n" + | ||
" <table\n" + | ||
" cellpadding=\"0\"\n" + | ||
" cellspacing=\"0\"\n" + | ||
" style=\"width: 628px; height: 521px; padding: 53px 62px 42px 62px\"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-bottom: 11.61px\">\n" + | ||
" <img\n" + | ||
" src=\"https://ifh.cc/g/BY3XG2.png\"\n" + | ||
" style=\"display: block\"\n" + | ||
" width=\"137\"\n" + | ||
" height=\"24\"\n" + | ||
" alt=\"Gamegoo\"\n" + | ||
" />\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 20px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 25px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 400;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ์ธ์ฆ์ฝ๋๋ฅผ ํ์ธํด์ฃผ์ธ์\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 38px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #5a42ee;\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-size: 32px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 700;\n" + | ||
" line-height: 150%;\n" + | ||
" margin-bottom: 30px;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
certificationNumber + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" <tr>\n" + | ||
" <td style=\"padding-top: 30px\">\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #2d2d2d;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 18px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 400;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ์ด๋ฉ์ผ ์ธ์ฆ ์ ์ฐจ์ ๋ฐ๋ผ ์ด๋ฉ์ผ ์ธ์ฆ์ฝ๋๋ฅผ ๋ฐ๊ธํด๋๋ฆฝ๋๋ค.\n" + | ||
" ์ธ์ฆ์ฝ๋๋ ์ด๋ฉ์ผ ๋ฐ์ก์์ ์ผ๋ก๋ถํฐ 3๋ถ ๋์ ์ ํจํฉ๋๋ค.<br /><br />\n" + | ||
" ๋ง์ฝ ๋ณธ์ธ ์์ฒญ์ ์ํ ์ด๋ฉ์ผ ์ธ์ฆ์ด ์๋๋ผ๋ฉด,<br />\n" + | ||
" [email protected]์ผ๋ก ๊ด๋ จ ๋ด์ฉ์ ์ ๋ฌํด ์ฃผ์ธ์.<br /><br />\n" + | ||
"\n" + | ||
" ๊ฐ์ฌํฉ๋๋ค.\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" <table\n" + | ||
" cellpadding=\"0\"\n" + | ||
" cellspacing=\"0\"\n" + | ||
" style=\"\n" + | ||
" width: 628px;\n" + | ||
" height: 292px;\n" + | ||
" padding: 37px 0px 153px 62px;\n" + | ||
" background: #f7f7f9;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" <tbody>\n" + | ||
" <tr>\n" + | ||
" <td>\n" + | ||
" <span\n" + | ||
" style=\"\n" + | ||
" color: #606060;\n" + | ||
" font-family: Pretendard;\n" + | ||
" font-size: 11px;\n" + | ||
" font-style: normal;\n" + | ||
" font-weight: 500;\n" + | ||
" line-height: 150%;\n" + | ||
" \"\n" + | ||
" >\n" + | ||
" ๋ณธ ๋ฉ์ผ์ ๋ฐ์ ์ ์ฉ์ผ๋ก ํ์ ๋์ง ์์ต๋๋ค.<br />\n" + | ||
" ๊ถ๊ธํ์ ์ ์ ๊ฒ๊ตฌ ์ด๋ฉ์ผ์ด๋ ์นด์นด์ค ์ฑ๋์ ํตํด\n" + | ||
" ๋ฌธ์ํ์๊ธฐ ๋ฐ๋๋๋ค.<br /><br />\n" + | ||
" email: [email protected]<br />\n" + | ||
" kakao: https://pf.kakao.com/_Rrxiqn<br />\n" + | ||
" copyright 2024. GameGoo All Rights Reserved.<br />\n" + | ||
" </span>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" </td>\n" + | ||
" </tr>\n" + | ||
" </tbody>\n" + | ||
" </table>\n" + | ||
" </body>\n" + | ||
"</html>\n"; | ||
|
||
return certificationMessage; | ||
} | ||
|