Revision 5:f608e6319b70

View differences:

src/my/com/upass/services/ResetTacService.java
50 50
			UserTacDAO tacDao = DAOFactoryProvider.getDAOFactory().getUserTacDAO();
51 51

  
52 52
			final Map<Integer, ConfigBean> configsMap = upc.getConfigurationsMap();
53
			TacBean tb = null;
53 54
			for (Integer appId : configsMap.keySet()) {
54
				TacBean tb = tacDao.getTacFromStore(userAlias, appId);
55
				tb = tacDao.getTacFromStore(userAlias, appId);
55 56

  
56 57
				if (tb == null) {
57
					return Constants.ERR_USERALIAS_NOT_FOUND;
58
					continue;
58 59
				}
60
				
59 61
				// reset TAC
60 62
				TacController tc = UPassFactory.getTacController(tb, configsMap.get(appId));
61 63
				tc.ResetTAC();
......
68 70
					rc = Constants.ERR_UNKNOWN;
69 71
				}
70 72
			}
73
			
74
			if(tb == null){
75
				rc = Constants.ERR_USERALIAS_NOT_FOUND;
76
			}
77
			
71 78
		} catch (Exception e) {
72 79
			e.printStackTrace();
73 80
		}

Also available in: Unified diff