Unverified Commit 304ee8c6 authored by Mahesh Maney R's avatar Mahesh Maney R Committed by GitHub
Browse files

Update UserController.java

Showing with 2 additions and 2 deletions
+2 -2
......@@ -40,8 +40,8 @@ public class UserController {
return userHandler.deactivateUser(body);
}
@GetMapping(value = "/otp", consumes = "application/json", produces = "application/json")
public ResponseEntity<JsonNode> sendOTP(@RequestParam int phoneNumber, @RequestParam String name, @RequestParam int otp) throws URISyntaxException {
@GetMapping(value = "/otp", produces = "application/json")
public ResponseEntity<String> sendOTP(@RequestParam String phoneNumber, @RequestParam String name, @RequestParam String otp) throws URISyntaxException {
return userHandler.sendOTP(phoneNumber, name, otp);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment