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