Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdbsx committed Aug 2, 2023
1 parent d3f72ba commit dbf7fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/bside/BSIDE/user/web/EmailController.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
**/


@CrossOrigin
@CrossOrigin(origins = {"http://localhost:3000","http://49.50.161.32:8080"},allowCredentials = "true")
@RestController
@RequestMapping("/email")
public class EmailController {
Expand All @@ -31,8 +31,7 @@ public EmailController(EmailService emailService) {
@PostMapping("/emailConfirm")
@Operation(summary = "이메일 인증 번호 전송")
public String emailConfirm(@RequestBody EmailDto param) throws Exception {
System.out.println(param.getEmail());
System.out.println("$!@#@#$%@%@#$%$%^@##$^^$^YRDGRDGD");

return emailService.sendCodeMessage(param.getEmail());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @일자 2023.05.12.
**/

@CrossOrigin
@CrossOrigin(origins = {"http://localhost:3000","http://49.50.161.32:8080"},allowCredentials = "true")
@RestController
@RequestMapping("/verifyCode")
public class VerificationController {
Expand All @@ -27,7 +27,8 @@ public class VerificationController {
public String verifyCode(@RequestParam("code") String userCode, HttpServletRequest request) {
HttpSession session = request.getSession();
String verificationCode = (String) session.getAttribute("verificationCode");


System.out.println(verificationCode +"$!$!@$!@@!@$@$");
if (verificationCode != null && verificationCode.equals(userCode)) {
// 인증번호 일치
return "인증번호가 일치합니다.";
Expand Down

0 comments on commit dbf7fdc

Please sign in to comment.