Updates
This commit is contained in:
+2
-1
@@ -45,12 +45,14 @@ function apiLoginUser(_a) {
|
||||
password: password,
|
||||
})
|
||||
: null;
|
||||
console.log("Finding DSQL User ...");
|
||||
let foundUser = yield (0, varDatabaseDbHandler_1.default)({
|
||||
queryString: `SELECT * FROM ${dbFullName}.users WHERE email = ? OR username = ?`,
|
||||
queryValuesArray: [email, username],
|
||||
database: dbFullName,
|
||||
useLocal,
|
||||
});
|
||||
console.log("foundUser", foundUser);
|
||||
if ((!foundUser || !foundUser[0]) && !social)
|
||||
return {
|
||||
success: false,
|
||||
@@ -69,7 +71,6 @@ function apiLoginUser(_a) {
|
||||
email_login &&
|
||||
email_login_code &&
|
||||
email_login_field) {
|
||||
/** @type {string} */
|
||||
const tempCode = foundUser[0][email_login_field];
|
||||
if (!tempCode)
|
||||
throw new Error("No code Found!");
|
||||
|
||||
Reference in New Issue
Block a user