Skip to content

Commit

Permalink
add params for get email code
Browse files Browse the repository at this point in the history
  • Loading branch information
zrll12 committed Jan 3, 2024
1 parent b68fd0c commit 508e608
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class UserController {
private static final Pattern numberPattern = Pattern.compile("[0-9]*");

@GetMapping("/code/email")
public ResponseEntity<String> getEmailCode(@RequestParam String email) {
public ResponseEntity<String> getEmailCode(@RequestParam("email") String email) {
CodeGetResponse ecr = userService.getCode(email, false);
if (ecr.getFrequent()) {
return new ResponseEntity<>("too frequent", null, StatusCode.TOO_MANY_REQUESTS);
Expand Down

0 comments on commit 508e608

Please sign in to comment.