Revision 24:4c0f490350d3

View differences:

src/com/ib/ibss/enterprise/services/ss112_user/IBSSRetailUserEnquiryDeleteServices.java
99 99
			Long actionId = RIBPermission.RESET_RIB_USER_PASSWORD.getActionId();			
100 100
			boolean isMakerChecker = m_oSharedServices.determineMakerChecker (actionId, getAdminActionDAO(), getIBSSessionObjects());	
101 101
			
102
			/* Delete User */
103
			UPassControllerV2 upass = new UPassControllerV2();
102 104
			Session session = HibernateUtils.currentSession();
103 105
			session.beginTransaction();
104
			
105
			/* Delete User */
106
			UPassControllerV2 upass = new UPassControllerV2();
107
			int response = upass.deleteUserWithTheProfile(upassAdmin, upassAdminPass, c_sUserAlias, Integer.valueOf(appId), null);
106
			int response = upass.deleteUserWithTheProfile(upassAdmin, upassAdminPass, c_sUserAlias, Integer.valueOf(appId), session);
108 107
			
109 108
			switch(response)
110 109
			{
src/com/ib/ibss/enterprise/services/ss112_user/IBSSRetailUserEnquiryResetPassServices.java
13 13

  
14 14
import java.util.Date;
15 15

  
16
import org.hibernate.Session;
17

  
18
import my.com.upass.MinimalUPassControllerV2;
16 19
import my.com.upass.UPassControllerV2;
20
import net.penril.generic.hibernate.HibernateUtils;
17 21
import net.penril.ibss.audit.log.AuditLogConstants;
18 22
import net.penril.ibss.core.hibernate.IbCustProfile;
19 23

  
......
66 70
	String c_sLogReason;
67 71
	Long c_oAdminID;
68 72
	Long c_oUserID;
73
	String upassAdmin					= "UpassAdmin";
74
	String upassAdminPass				= "password";
69 75
	
70 76
	IBSSDynaBean c_oDetailBean;
71 77
	
......
133 139
	{
134 140
		IBSSLogger.debug (c_oClass, "Entering resetPassword");
135 141
		
136
		UPassControllerV2 upass = new UPassControllerV2();
137
		int m_iRC = getUPassService ().resetUserPassword (c_sUserAlias, c_sPassword);
142
		MinimalUPassControllerV2 upass = new MinimalUPassControllerV2();
143
		Session session = HibernateUtils.currentSession();
144
		session.beginTransaction();
145
		int m_iRC = upass.resetPassword_withAppChecked(upassAdmin, upassAdminPass, c_sUserAlias, c_sPassword);
138 146
		
139 147
		switch(m_iRC)
140 148
		{

Also available in: Unified diff