| Line 86... |
Line 86... |
| 86 |
@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
86 |
@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
|
| 87 |
@ApiImplicitParams({
|
87 |
@ApiImplicitParams({
|
| 88 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token",
|
88 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token",
|
| 89 |
required = true, dataType = "string", paramType = "header")
|
89 |
required = true, dataType = "string", paramType = "header")
|
| 90 |
})
|
90 |
})
|
| 91 |
@ApiOperation(value = "Generate OTP")
|
91 |
@ApiOperation(value = "Validate OTP")
|
| 92 |
public ResponseEntity<?> validateOtp(@RequestParam("email") String email, @RequestParam("reference_id") long reference_id, @RequestParam("otp_number") String otp_number){
|
92 |
public ResponseEntity<?> validateOtp(@RequestParam("email") String email, @RequestParam("reference_id") long reference_id, @RequestParam("otp_number") String otp_number){
|
| 93 |
logger.info("Email : "+email+" Refference_id : "+reference_id);
|
93 |
logger.info("Email : "+email+" Refference_id : "+reference_id);
|
| 94 |
//TODO validate email & phone from utility method
|
94 |
//TODO validate email & phone from utility method
|
| 95 |
OTPResponse otpResponse;
|
95 |
OTPResponse otpResponse;
|
| 96 |
try {
|
96 |
try {
|