diff --git a/api/src/api/accounts.js b/api/src/api/accounts.js index ed1408e..be05cb6 100644 --- a/api/src/api/accounts.js +++ b/api/src/api/accounts.js @@ -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)