updatePassword ok

dev-deployment
luotaiqian 2026-06-30 10:24:51 +08:00
parent 465288f4f2
commit f7e1fffdac
2 changed files with 6 additions and 7 deletions

View File

@ -125,12 +125,7 @@ public class OrgPersonnelExecutor implements OrgPersonnelApi {
userUpdatePasswordCmd.setId(entity.getId());
String encrypt = Sm2Util.encryptHex(MD5.md5(defPassword), publicKey);
userUpdatePasswordCmd.setPassword(encrypt);
syncGbsUser("reset user password", new Runnable() {
@Override
public void run() {
gbsUserFacadeClient.updatePassword(userUpdatePasswordCmd);
}
});
return SingleResponse.success();
}

View File

@ -1,5 +1,6 @@
package org.qinan.safetyeval.infrastructure.adapter.gbs;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.jjb.saas.system.client.user.facade.UserFacade;
import com.jjb.saas.system.client.user.request.RoleDeptAddCmd;
@ -40,7 +41,10 @@ public class GbsUserFacadeClient {
}
public void updatePassword(UserUpdatePasswordCmd cmd) {
userFacade.updatePassword(cmd);
Response response = userFacade.updatePassword(cmd);
if (!response.isSuccess()) {
throw new BizException(response.getErrCode(), response.getErrMessage());
}
}
public void quit(UserUpdateQuitCmd cmd) {