more checks and stuff for verification

This commit is contained in:
durn
2026-04-30 00:04:52 -06:00
parent e7be40bb8d
commit 37c3fb0979
7 changed files with 155 additions and 87 deletions
@@ -25,6 +25,11 @@ public class EmailController {
if (emailService.isValidEmail(email) == false) {
return ResponseEntity.status(429).body("Invalid Email Detected.");
}
if (emailService.isEmailTaken(email)) {
return ResponseEntity.status(409).body("An account with this email already exists.");
}
return ResponseEntity.ok().build();
}