free-be-account 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-be-account",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -113,7 +113,8 @@ router.get('/:id',
113
113
  'Org',
114
114
  'Status',
115
115
  'Permission',
116
- 'Labels'
116
+ 'Labels',
117
+ 'Secret',
117
118
  ];
118
119
 
119
120
  return next();
@@ -207,6 +208,9 @@ router.post('/',
207
208
  req.body.Password = encryptPwd(password, router.mdl.config.pwdEncryptMethod || 'md5');
208
209
  }
209
210
 
211
+ // 随机生成appKey
212
+ req.body.Secret = crypto.randomPassword(32);
213
+
210
214
  return next();
211
215
  },
212
216
  router.CreateDocument('account')