Merge branch 'be/email' into 'backend'

feat: 이메일 인증 실패시 반환값 변경

See merge request s11-webmobile1-sub2/S11P12A701!93
This commit is contained in:
김기창 2024-08-07 17:28:22 +09:00
commit 0ca31ea84a

View File

@ -31,7 +31,7 @@ public class MailController {
@GetMapping("/verify") @GetMapping("/verify")
public ResponseEntity<?> verifyCode(@RequestParam String code, @RequestParam String email) { public ResponseEntity<?> verifyCode(@RequestParam String code, @RequestParam String email) {
if (!mailService.verifyCode(code, email)) { if (!mailService.verifyCode(code, email)) {
return new ResponseEntity<>(HttpStatus.BAD_REQUEST); return new ResponseEntity<>(HttpStatus.NOT_FOUND);
} }
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
} }