Add "activated": 1 to user document on created (TODO: change it later)
This commit is contained in:
parent
95436a59b3
commit
bc2a9e2eb7
|
@ -25,7 +25,8 @@ module.exports = {
|
|||
const documen = await db.table.users().insertOne({
|
||||
'username': req.body.username,
|
||||
'email': req.body.email,
|
||||
'password': pwd.cryptPassword(req.body.password)
|
||||
'password': pwd.cryptPassword(req.body.password),
|
||||
'activated': 1, // TODO: change to 0 and activate by email verification later
|
||||
})
|
||||
|
||||
if (documen.insertedCount > 0)
|
||||
|
|
Loading…
Reference in New Issue