updatePassword ok
parent
465288f4f2
commit
f7e1fffdac
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
gbsUserFacadeClient.updatePassword(userUpdatePasswordCmd);
|
||||
return SingleResponse.success();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue