| Line 247... |
Line 247... |
| 247 |
try {
|
247 |
try {
|
| 248 |
user = userRepository.selectByEmailId(email);
|
248 |
user = userRepository.selectByEmailId(email);
|
| 249 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
249 |
} catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
| 250 |
responseMap.put(ProfitMandiConstants.TOKEN, jwtUtil.create(email));
|
250 |
responseMap.put(ProfitMandiConstants.TOKEN, jwtUtil.create(email));
|
| 251 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
251 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
| - |
|
252 |
responseMap.put(ProfitMandiConstants.USER_STATUS, UserStatus.NOT_REGISTERED_GOOGLE_ACCOUNT.getValue());
|
| - |
|
253 |
return responseMap;
|
| 252 |
}
|
254 |
}
|
| 253 |
} else {
|
255 |
} else {
|
| 254 |
List<Integer> roleIds = userRoleRepository.selectRoleIdsByUserId(user.getId());
|
256 |
List<Integer> roleIds = userRoleRepository.selectRoleIdsByUserId(user.getId());
|
| 255 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(user.getId());
|
257 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(user.getId());
|
| 256 |
String[] roleTypes = new String[roleIds.size()];
|
258 |
String[] roleTypes = new String[roleIds.size()];
|