From e7e89b8de7386e84c0d6b8e217e2034909657d68 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 26 Jul 2024 23:07:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=97=A0=E6=B3=95=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certd-server/src/modules/authority/service/user-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/certd-server/src/modules/authority/service/user-service.ts b/packages/ui/certd-server/src/modules/authority/service/user-service.ts index cc22c61a..c124800a 100644 --- a/packages/ui/certd-server/src/modules/authority/service/user-service.ts +++ b/packages/ui/certd-server/src/modules/authority/service/user-service.ts @@ -66,7 +66,7 @@ export class UserService extends BaseService { } const plainPassword = param.password ?? randomText(6); param.passwordVersion = 2; - param.password = this.genPassword(plainPassword, param.passwordVersion); // 默认密码 建议未改密码不能登陆 + param.password = await this.genPassword(plainPassword, param.passwordVersion); // 默认密码 建议未改密码不能登陆 await super.add(param); //添加角色 if (param.roles && param.roles.length > 0) {