Subversion Repositories SmartDukaan

Rev

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

Rev 21426 Rev 21440
Line 91... Line 91...
91
				for(Role role : roles){
91
				for(Role role : roles){
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 pmbe) {
96
			}catch (ProfitMandiBusinessException profitMandiBusinessException) {
97
				responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create());
97
				responseMap.put(ProfitMandiConstants.TOKEN, JWTUtil.create());
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) {