Subversion Repositories SmartDukaan

Rev

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

Rev 22072 Rev 22073
Line 50... Line 50...
50
			return "redirect:/dashboard";
50
			return "redirect:/dashboard";
51
		}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){
51
		}catch(Exception | ProfitMandiBusinessException profitMandiBusinessException){
52
			Resource resource = AppConfig.getResource();
52
			Resource resource = AppConfig.getResource();
53
			Properties properties = new Properties();
53
			Properties properties = new Properties();
54
			properties.load(resource.getInputStream());
54
			properties.load(resource.getInputStream());
55
			String googleApiKey = properties.getProperty("google.api.key");
55
			model.addAttribute("googleApiKey", properties.getProperty("google.api.key"));
56
			LOGGER.info("Google Api Key {}", googleApiKey);
-
 
57
			model.addAttribute("googleApiKey", googleApiKey);
56
			model.addAttribute("appContextPath", properties.getProperty("app.context.path"));
58
			return "login";
57
			return "login";
59
		}
58
		}
60
	}
59
	}
61
	
60
	
62
	@RequestMapping(value = "/login", method = RequestMethod.POST)
61
	@RequestMapping(value = "/login", method = RequestMethod.POST)