From 0b9d9575d1ded1d13ab106ac8b17384a1fbbb6fa Mon Sep 17 00:00:00 2001 From: Tben Date: Sun, 6 Aug 2023 13:57:29 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/login-user.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4a2ea35..3b67c28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.96", + "version": "1.2.0", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/login-user.js b/users/login-user.js index 5b62e7f..e81e0a7 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -49,15 +49,15 @@ const encrypt = require("../functions/encrypt"); * email?: string, * username?: string, * password: string, - * additionalFields: any, * }} params.payload Login Email/Username and Password + * @param {*} params.additionalFields - Additional Fields to be added to the user object * @param {Object} params.response - Http response object * @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionSalt - Encryption Salt * * @returns { Promise} */ -async function loginUser({ key, payload, database, response, encryptionKey, encryptionSalt }) { +async function loginUser({ key, payload, database, additionalFields, response, encryptionKey, encryptionSalt }) { /** * Check Encryption Keys * @@ -102,6 +102,7 @@ async function loginUser({ key, payload, database, response, encryptionKey, encr const reqPayload = JSON.stringify({ payload, database, + additionalFields, }); const httpsRequest = https.request(