This commit is contained in:
@@ -100,7 +100,7 @@ public class UserManService extends BaseService {
|
||||
userInfo.setRoleidnfiname(CommonConstants.DEPT_DEVELOPER);
|
||||
|
||||
try {
|
||||
userInfo.setPassword(Seed.encrypt(userUI.getUserId()));
|
||||
userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256,userUI.getUserId()));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Error encrypting password", e);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.eactive.eai.rms.data.entity.man.user.UserServiceType;
|
||||
import com.eactive.eai.rms.data.entity.man.user.UserServiceTypeId;
|
||||
import com.eactive.eai.rms.data.entity.man.user.UserServiceTypeService;
|
||||
import com.eactive.eai.rms.data.entity.onl.bzwkdstcd.UserBusinessService;
|
||||
import com.eactive.ext.djb.DamoManager;
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
@@ -124,7 +125,7 @@ public class UserSyncService extends BaseService {
|
||||
UserInfo userInfo = new UserInfo();
|
||||
userInfo.setUserid(userId);
|
||||
userInfo.setUsername(userInfoMap.get("EMPY_NM").toString());
|
||||
userInfo.setPassword(Seed.encrypt(userId));
|
||||
userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256,userId));
|
||||
userInfo.setRoleidnfiname(CommonConstants.DEPT_DEVELOPER);
|
||||
|
||||
userInfoService.save(userInfo);
|
||||
|
||||
Reference in New Issue
Block a user