Subversion Repositories SmartDukaan

Rev

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

Rev 22087 Rev 22088
Line 40... Line 40...
40
	@Autowired
40
	@Autowired
41
	MVCResponseSender mvcResponseSender;
41
	MVCResponseSender mvcResponseSender;
42
	
42
	
43
	@Autowired
43
	@Autowired
44
	CookiesProcessor cookiesProcessor;
44
	CookiesProcessor cookiesProcessor;
45
	
-
 
46
	@Value("${app.context.path}")
-
 
47
	private String appContextPath;
-
 
48
 
45
 
49
	@Value("${google.api.key}")
46
	@Value("${google.api.key}")
50
	private String googleApiKey;
47
	private String googleApiKey;
51
	
48
	
52
	@RequestMapping(value = "/login", method = RequestMethod.GET)
49
	@RequestMapping(value = "/login", method = RequestMethod.GET)
53
	public String loginPage(HttpServletRequest request, Model model) throws Exception{
50
	public String loginPage(HttpServletRequest request, Model model) throws Exception{
-
 
51
		LOGGER.info("Context Path is {}", request.getContextPath());
54
		try{
52
		try{
55
			cookiesProcessor.getCookiesObject(request);
53
			cookiesProcessor.getCookiesObject(request);
56
			LOGGER.info("Request session is already exist, should be redirect to /dashboard");
54
			LOGGER.info("Request session is already exist, should be redirect to /dashboard");
57
			return "redirect:/dashboard";
55
			return "redirect:/dashboard";
58
		}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){
56
		}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){