Add "activated": 1 to user document on created (TODO: change it later)

This commit is contained in:
Niko 2022-02-08 22:29:58 +01:00
parent 95436a59b3
commit bc2a9e2eb7
1 changed files with 2 additions and 1 deletions

View File

@ -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)