From 8494758fcdd43fbd1c82d3570c4fc7cca414760e Mon Sep 17 00:00:00 2001 From: eastargh Date: Wed, 1 Jul 2026 10:27:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=A0=EA=B7=9C=20=EB=B9=84=EB=B0=80?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EB=B0=8F=20=EC=B4=88=EA=B8=B0=ED=99=94?= =?UTF-8?q?=EC=8B=9C=20=EC=82=AC=EB=B2=88+@!=20=EB=A1=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/eactive/eai/rms/common/acl/user/UserManService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eactive/eai/rms/common/acl/user/UserManService.java b/src/main/java/com/eactive/eai/rms/common/acl/user/UserManService.java index dec6171..33ff53c 100644 --- a/src/main/java/com/eactive/eai/rms/common/acl/user/UserManService.java +++ b/src/main/java/com/eactive/eai/rms/common/acl/user/UserManService.java @@ -41,6 +41,8 @@ import lombok.RequiredArgsConstructor; @Transactional(transactionManager = "transactionManagerForEMS") @RequiredArgsConstructor public class UserManService extends BaseService { + + private final String DEFAULT_PASSWORD_SUBFIX = "@!"; private final UserInfoService userInfoService; private final UserRoleService userRoleService; @@ -100,7 +102,7 @@ public class UserManService extends BaseService { userInfo.setRoleidnfiname(CommonConstants.DEPT_DEVELOPER); try { - userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256,userUI.getUserId())); + userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256,userUI.getUserId()+DEFAULT_PASSWORD_SUBFIX)); } catch (Exception e) { throw new RuntimeException("Error encrypting password", e); } @@ -141,7 +143,7 @@ public class UserManService extends BaseService { public void updatePassword(UserUI userUI) throws Exception { UserInfo userInfo = userInfoService.getById(userUI.getUserId()); - userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256, userUI.getUserId())); + userInfo.setPassword(DamoManager.getInstance().hash(DamoManager.SHA256, userUI.getUserId()+DEFAULT_PASSWORD_SUBFIX)); userUIMapper.updateToEntity(userUI, userInfo); userInfoService.save(userInfo); }