lrf402788946 hace 4 años
padre
commit
31a00dfc70
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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;
   }