lrf402788946 4 vuotta sitten
vanhempi
commit
31a00dfc70
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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;
   }