| Line 358... |
Line 358... |
| 358 |
*/
|
358 |
*/
|
| 359 |
throw new ProfitMandiBusinessException(ProfitMandiConstants.EMAIL_ID, fofoDetails.getEmailId(), "RTLR_1000");
|
359 |
throw new ProfitMandiBusinessException(ProfitMandiConstants.EMAIL_ID, fofoDetails.getEmailId(), "RTLR_1000");
|
| 360 |
}
|
360 |
}
|
| 361 |
return "response";
|
361 |
return "response";
|
| 362 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
362 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
| 363 |
LOGGER.error("Error : ", profitMandiBusinessException);
|
363 |
LOGGER.warn("Error : ", profitMandiBusinessException);
|
| 364 |
model.addAttribute("response1",
|
364 |
model.addAttribute("response1",
|
| 365 |
mvcResponseSender.createResponseString(profitMandiBusinessException.getCode(), false, "/error"));
|
365 |
mvcResponseSender.createResponseString(profitMandiBusinessException.getCode(), false, "/error"));
|
| 366 |
return "response";
|
366 |
return "response";
|
| 367 |
} catch (Exception e) {
|
367 |
} catch (Exception e) {
|
| 368 |
e.printStackTrace();
|
368 |
e.printStackTrace();
|
| Line 427... |
Line 427... |
| 427 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
427 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 428 |
User user = null;
|
428 |
User user = null;
|
| 429 |
try {
|
429 |
try {
|
| 430 |
user = userRepository.selectByEmailId(loginDetails.getEmailId());
|
430 |
user = userRepository.selectByEmailId(loginDetails.getEmailId());
|
| 431 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
431 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
| 432 |
LOGGER.error("User not found with given emailId", profitMandiBusinessException);
|
432 |
LOGGER.warn("User not found with given emailId", profitMandiBusinessException);
|
| 433 |
}
|
433 |
}
|
| 434 |
if (user == null) {
|
434 |
if (user == null) {
|
| 435 |
user = userRepository.selectBySecondryEmailId(loginDetails.getEmailId());
|
435 |
user = userRepository.selectBySecondryEmailId(loginDetails.getEmailId());
|
| 436 |
}
|
436 |
}
|
| 437 |
user.setLogoutTimestamp(LocalDateTime.now());
|
437 |
user.setLogoutTimestamp(LocalDateTime.now());
|