lrf402788946 4 years ago
parent
commit
596c1028ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

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