ADD: metadata when user created

This commit is contained in:
igor
2018-12-10 12:39:54 +00:00
parent d1de8cf447
commit 1aa9827e1c
3 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ router.post('/create', async function(req, res) {
let u = new User(redis);
await u.create();
await u.saveMetadata({ partnerid: req.body.partnerid, accounttype: req.body.accounttype, created_at: new Date().toISOString() });
res.send({ login: u.getLogin(), password: u.getPassword() });
});