Subversion Repositories SmartDukaan

Rev

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

Rev 23568 Rev 23628
Line 82... Line 82...
82
			model.addAttribute("googleApiKey", googleApiKey);
82
			model.addAttribute("googleApiKey", googleApiKey);
83
			model.addAttribute("appContextPath", request.getContextPath());
83
			model.addAttribute("appContextPath", request.getContextPath());
84
			return "login";
84
			return "login";
85
		}
85
		}
86
	}
86
	}
-
 
87
	
87
	@RequestMapping(value = "/", method = RequestMethod.GET)
88
	@RequestMapping(value = "/", method = RequestMethod.GET)
88
	public String home(){
89
	public String home(){
89
		return "redirect:/login";
90
		return "redirect:/login";
90
	}
91
	}
91
	
92
	
Line 104... Line 105...
104
			//fofoDetails.setFofo(false);
105
			//fofoDetails.setFofo(false);
105
			User user = null;
106
			User user = null;
106
			try{
107
			try{
107
				user = userRepository.selectByEmailId(emailId);
108
				user = userRepository.selectByEmailId(emailId);
108
			}catch(ProfitMandiBusinessException profitMandiBusinessException){
109
			}catch(ProfitMandiBusinessException profitMandiBusinessException){
109
				LOGGER.error("User not found with given emailId", profitMandiBusinessException);
110
				LOGGER.error("User not found with given emailId [{}]", emailId);
110
			}
111
			}
111
			if(user == null){
112
			if(user == null){
112
				try{
113
				try{
113
					user = userRepository.selectBySecondryEmailId(emailId);
114
					user = userRepository.selectBySecondryEmailId(emailId);
114
				}catch(ProfitMandiBusinessException profitMandiBusinessException){
115
				}catch(ProfitMandiBusinessException profitMandiBusinessException){