Subversion Repositories SmartDukaan

Rev

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

Rev 24478 Rev 24527
Line 149... Line 149...
149
					authRepository.persist(authUser);
149
					authRepository.persist(authUser);
150
				}
150
				}
151
 
151
 
152
			} else {
152
			} else {
153
				emailId = googleTokenUtil.getEmailId(token);
153
				emailId = googleTokenUtil.getEmailId(token);
-
 
154
				if(ProfitMandiConstants.BLOCKED_EMAILS.contains(emailId)) {
-
 
155
				}
154
			}
156
			}
155
			fofoDetails.setEmailId(emailId);
157
			fofoDetails.setEmailId(emailId);
156
			fofoDetails.setFofoId(-1);
158
			fofoDetails.setFofoId(-1);
157
			// fofoDetails.setFofo(false);
159
			// fofoDetails.setFofo(false);
158
			User user = null;
160
			User user = null;
Line 164... Line 166...
164
			if (user == null) {
166
			if (user == null) {
165
				try {
167
				try {
166
					user = userRepository.selectBySecondryEmailId(emailId);
168
					user = userRepository.selectBySecondryEmailId(emailId);
167
				} catch (ProfitMandiBusinessException profitMandiBusinessException) {
169
				} catch (ProfitMandiBusinessException profitMandiBusinessException) {
168
					LOGGER.error("User not found with given emailId", profitMandiBusinessException);
170
					LOGGER.error("User not found with given emailId", profitMandiBusinessException);
-
 
171
					model.addAttribute("response", mvcResponseSender.createResponseString("RTLR_OK_1002", true,
-
 
172
							request.getContextPath() + "/login","Email"));
-
 
173
					return "response";
169
				}
174
				}
170
			}
175
			}
171
			if (user != null) {
176
			if (user != null) {
172
				fofoDetails.setFofoId(user.getId());
177
				fofoDetails.setFofoId(user.getId());
173
				try {
178
				try {