lrf402788946 4 năm trước cách đây
mục cha
commit
31a00dfc70
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      app/service/user.js

+ 1 - 2
app/service/user.js

@@ -25,8 +25,7 @@ class UserService extends CrudService {
     //   throw new BusinessError(ErrorCode.DATA_EXISTED);
     // }
     const newdata = data;
-    const pas = await this.createJwtPwd(passwd);
-    newdata.passwd = { secret: pas };
+    newdata.password = { secret: passwd };
     const res = await this.model.create(newdata);
     return res;
   }