Subversion Repositories SmartDukaan

Rev

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

Rev 26775 Rev 26777
Line 354... Line 354...
354
 
354
 
355
	@RequestMapping(value = "/store/login/{mobile}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
355
	@RequestMapping(value = "/store/login/{mobile}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
356
	public ResponseEntity<?> generateOtp(HttpServletRequest request, @PathVariable String mobile) throws Exception {
356
	public ResponseEntity<?> generateOtp(HttpServletRequest request, @PathVariable String mobile) throws Exception {
357
		try {
357
		try {
358
			Customer customer = customerRepository.selectByMobileNumber(mobile);
358
			Customer customer = customerRepository.selectByMobileNumber(mobile);
-
 
359
			customer.setPasswordExist(StringUtils.isNotEmpty(customer.getPassword()));
359
			return responseSender.ok(new CustomerModel(true, customer));
360
			return responseSender.ok(new CustomerModel(true, customer));
360
		} catch (Exception e) {
361
		} catch (Exception e) {
361
			return responseSender.ok(new CustomerModel(false, null));
362
			return responseSender.ok(new CustomerModel(false, null));
362
		}
363
		}
363
	}
364
	}