| Line 92... |
Line 92... |
| 92 |
roleNames[index++] = role.getName();
|
92 |
roleNames[index++] = role.getName();
|
| 93 |
}
|
93 |
}
|
| 94 |
responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create(user.getId(), roleNames));
|
94 |
responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create(user.getId(), roleNames));
|
| 95 |
responseMap.put(ProfitMandiConstants.REGISTERED, true);
|
95 |
responseMap.put(ProfitMandiConstants.REGISTERED, true);
|
| 96 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
96 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
| 97 |
responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create());
|
97 |
responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create(socialUser.getEmailId()));
|
| 98 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
98 |
responseMap.put(ProfitMandiConstants.REGISTERED, false);
|
| 99 |
}
|
99 |
}
|
| 100 |
return responseMap;
|
100 |
return responseMap;
|
| 101 |
}catch (JsonProcessingException jsonProcessingException) {
|
101 |
}catch (JsonProcessingException jsonProcessingException) {
|
| 102 |
//LOGGER.error("Json parse exception of "+json,jsonProcessingException);
|
102 |
//LOGGER.error("Json parse exception of "+json,jsonProcessingException);
|