Subversion Repositories SmartDukaan

Rev

Rev 26783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26783 Rev 32721
Line 56... Line 56...
56
 
56
 
57
	@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
57
	@RequestMapping(value = ProfitMandiConstants.URL_VERIFY_OTP, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
58
	@ApiImplicitParams({
58
	@ApiImplicitParams({
59
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
59
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
60
	@ApiOperation(value = "Validate OTP")
60
	@ApiOperation(value = "Validate OTP")
61
	public ResponseEntity<?> validateOtp(String mobile, @RequestParam int referenceId, String otpCode)
61
	public ResponseEntity<?> validateOtp(@RequestParam String mobile, @RequestParam int referenceId, @RequestParam String otpCode)
62
			throws Exception {
62
			throws Exception {
-
 
63
		logger.info("mobile - {}", mobile);
-
 
64
		logger.info("referenceId - {}", referenceId);
-
 
65
		logger.info("otpCode - {}", otpCode);
63
		// TODO validate email & phone from utility method
66
		// TODO validate email & phone from utility method
64
		OTPResponse otpResponse;
-
 
65
		otpResponse = otpProcessor.validateOtp(referenceId, mobile, otpCode);
67
		OTPResponse otpResponse = otpProcessor.validateOtp(referenceId, mobile, otpCode);
66
		return responseSender.ok(otpResponse);
68
		return responseSender.ok(otpResponse);
67
	}
69
	}
68
 
70
 
69
	@ApiOperation(value = "Parse OTP")
71
	@ApiOperation(value = "Parse OTP")
70
	@ApiImplicitParams({
72
	@ApiImplicitParams({