Subversion Repositories SmartDukaan

Rev

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

Rev 21503 Rev 21511
Line 244... Line 244...
244
			LOGGER.error("ProfitMandi error: ", profitMandiBusinessException);
244
			LOGGER.error("ProfitMandi error: ", profitMandiBusinessException);
245
			return responseSender.badRequest(profitMandiBusinessException);
245
			return responseSender.badRequest(profitMandiBusinessException);
246
		}
246
		}
247
	}
247
	}
248
 
248
 
249
	@ApiImplicitParams({
249
	/*@ApiImplicitParams({
250
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
250
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
251
	@RequestMapping(value = ProfitMandiConstants.URL_USER_ACTIVATE, method = RequestMethod.POST)
251
	@RequestMapping(value = ProfitMandiConstants.URL_USER_ACTIVATE, method = RequestMethod.POST)
252
	public ResponseEntity<?> activateUser(HttpServletRequest request,
252
	public ResponseEntity<?> activateUser(HttpServletRequest request,
253
			@RequestParam(name = "activationCode") String activationCode) {
253
			@RequestParam(name = "activationCode") String activationCode) {
254
		Map<String, Object> response = new HashMap<>();
254
		Map<String, Object> response = new HashMap<>();
255
		boolean activated = false;
255
		boolean activated = false;
256
		
256
		
257
		/*int userId = (int)request.getAttribute("userId");
257
		int userId = (int)request.getAttribute("userId");
258
		UserCart uc  = userAccountRepository.getUserCart(userId);
258
		UserCart uc  = userAccountRepository.getUserCart(userId);
259
		Client client  = new TransactionClient().getClient();
259
		Client client  = new TransactionClient().getClient();
260
		if (client.registerRsa(uc.getUserId(),activationCode)){
260
		if (client.registerRsa(uc.getUserId(),activationCode)){
261
			activated = true;
261
			activated = true;
262
		}
262
		}
263
		else{
263
		else{
264
			
264
			
265
		}*/
265
		}
266
		return responseSender.ok(null);
266
		return responseSender.ok(null);
267
	}
267
	}*/
268
	
268
	
269
	@RequestMapping(value = ProfitMandiConstants.URL_USER_IS_EXIST_MOBILE_NUMBER, method = RequestMethod.GET)
269
	@RequestMapping(value = ProfitMandiConstants.URL_USER_IS_EXIST_MOBILE_NUMBER, method = RequestMethod.GET)
270
	public ResponseEntity<?> isMobileNumberExist(HttpServletRequest request,
270
	public ResponseEntity<?> isMobileNumberExist(HttpServletRequest request,
271
			@RequestParam(name = "mobileNumber") String mobileNumber) {
271
			@RequestParam(name = "mobileNumber") String mobileNumber) {
272
		LOGGER.info("requested url : " + request.getRequestURL().toString());
272
		LOGGER.info("requested url : " + request.getRequestURL().toString());