| Line 157... |
Line 157... |
| 157 |
private PromoterRepository promoterRepository;
|
157 |
private PromoterRepository promoterRepository;
|
| 158 |
|
158 |
|
| 159 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
|
159 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, method = RequestMethod.POST)
|
| 160 |
public ResponseEntity<?> googleLogin(HttpServletRequest request, @RequestBody GoogleLoginRequest googleLoginRequest)
|
160 |
public ResponseEntity<?> googleLogin(HttpServletRequest request, @RequestBody GoogleLoginRequest googleLoginRequest)
|
| 161 |
throws ProfitMandiBusinessException {
|
161 |
throws ProfitMandiBusinessException {
|
| 162 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
- |
|
| 163 |
Map<String, Object> resultMap = googleLoginProcessor.process(googleLoginRequest);
|
- |
|
| 164 |
LOGGER.info("Response sent is {}", resultMap);
|
- |
|
| 165 |
return responseSender.ok(googleLoginProcessor.process(googleLoginRequest));
|
162 |
return responseSender.ok(googleLoginProcessor.process(googleLoginRequest.getToken()));
|
| 166 |
}
|
163 |
}
|
| 167 |
|
164 |
|
| 168 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_TOKEN_IS_EXPIRED, method = RequestMethod.GET)
|
165 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_TOKEN_IS_EXPIRED, method = RequestMethod.GET)
|
| 169 |
public ResponseEntity<?> tokenIsExpired(HttpServletRequest request, @RequestParam(name = "token") String token)
|
166 |
public ResponseEntity<?> tokenIsExpired(HttpServletRequest request, @RequestParam(name = "token") String token)
|
| 170 |
throws ProfitMandiBusinessException {
|
167 |
throws ProfitMandiBusinessException {
|