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 +1 -1
- package/routers/mgmt/route.js +5 -1
package/package.json
CHANGED
package/routers/mgmt/route.js
CHANGED
|
@@ -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')
|