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

This commit is contained in:
kgc91747 2024-08-07 17:27:46 +09:00
parent a02884e2dd
commit 78cfed17e7

View File

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