This commit is contained in:
Tben
2023-08-12 17:35:59 +01:00
parent f0feaf508b
commit b5a4de3e8f
7 changed files with 34 additions and 8 deletions
+6
View File
@@ -31,6 +31,10 @@ async function localAddUser({ payload, dbSchema }) {
* Initialize Variables
*/
const dbFullName = process.env.DSQL_DB_NAME || "";
const encryptionKey = process.env.DSQL_ENCRYPTION_KEY || "";
const encryptionSalt = process.env.DSQL_ENCRYPTION_SALT || "";
/**
* Hash Password
*
@@ -105,6 +109,8 @@ async function localAddUser({ payload, dbSchema }) {
image: "/images/user_images/user-preset.png",
image_thumbnail: "/images/user_images/user-preset-thumbnail.png",
},
encryptionKey,
encryptionSalt,
});
if (addUser?.insertId) {