This commit is contained in:
Benjamin Toby 2025-01-14 14:45:32 +01:00
parent 20754d5cae
commit 09bfbd4214
3 changed files with 12 additions and 1 deletions

View File

@ -74,6 +74,10 @@ function apiLoginUser(_a) {
isPasswordCorrect = true;
}
else if ((foundUser === null || foundUser === void 0 ? void 0 : foundUser[0]) && !email_login) {
if (debug) {
console.log("apiLoginUser:hashedPassword:", hashedPassword);
console.log("apiLoginUser:foundUser[0].password:", foundUser[0].password);
}
isPasswordCorrect = hashedPassword === foundUser[0].password;
}
else if (foundUser &&

View File

@ -90,6 +90,13 @@ export default async function apiLoginUser({
if (foundUser?.[0] && !email_login && skipPassword) {
isPasswordCorrect = true;
} else if (foundUser?.[0] && !email_login) {
if (debug) {
console.log("apiLoginUser:hashedPassword:", hashedPassword);
console.log(
"apiLoginUser:foundUser[0].password:",
foundUser[0].password
);
}
isPasswordCorrect = hashedPassword === foundUser[0].password;
} else if (
foundUser &&

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "3.5.3",
"version": "3.5.4",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {