how can i get the value of the password field using the email provided or retrieved from the login
exports.Authenticate= async function (data){
try {
let sql = 'SELECT * FROM "'+config.DDTAA+'"."Users" WHERE "Email"= $1 AND "Password"= $2 AND "Status"=$3';
const query = await pool.query(sql, [data.Email,data.Password,data.Status]);
console.log(query)
// callback - checkout a client
return pool.query(sql, [data.Email, data.Password,data.Status])
.then((res) => { return res;})
.catch((err) => { return console.error('---Error executing query---\n', err.stack) });
} catch(err) { return console.error(err); }
}
this is the result of console.log(query)