| Line 52... |
Line 52... |
| 52 |
@RequestMapping(value = "/login", method = RequestMethod.GET)
|
52 |
@RequestMapping(value = "/login", method = RequestMethod.GET)
|
| 53 |
public String loginPage(HttpServletRequest request, Model model) throws Exception{
|
53 |
public String loginPage(HttpServletRequest request, Model model) throws Exception{
|
| 54 |
try{
|
54 |
try{
|
| 55 |
cookiesProcessor.getCookiesObject(request);
|
55 |
cookiesProcessor.getCookiesObject(request);
|
| 56 |
LOGGER.info("Request session is already exist, should be redirect to /dashboard");
|
56 |
LOGGER.info("Request session is already exist, should be redirect to /dashboard");
|
| 57 |
return "redirect:dashboard";
|
57 |
return "redirect:/dashboard";
|
| 58 |
}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){
|
58 |
}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){
|
| 59 |
model.addAttribute("googleApiKey", googleApiKey);
|
59 |
model.addAttribute("googleApiKey", googleApiKey);
|
| 60 |
model.addAttribute("appContextPath", appContextPath);
|
60 |
model.addAttribute("appContextPath", appContextPath);
|
| 61 |
return "login";
|
61 |
return "login";
|
| 62 |
}
|
62 |
}
|