lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
596c1028ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   }