From 65190a11a49cd1fdd838b579e63af27c29ae252e Mon Sep 17 00:00:00 2001 From: AprilNEA Date: Tue, 12 Dec 2023 11:26:56 +0800 Subject: [PATCH] fix: fix empty password when init admin --- packages/backend/src/modules/auth/auth.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/modules/auth/auth.service.ts b/packages/backend/src/modules/auth/auth.service.ts index 742febaa..48c84d04 100644 --- a/packages/backend/src/modules/auth/auth.service.ts +++ b/packages/backend/src/modules/auth/auth.service.ts @@ -338,6 +338,7 @@ export class AuthService { role: Role.Admin, email, phone, + password: hashSync(password, SALT_ROUNDS), }, }); }