I made a custom database named “Signup” in Wix where when members can signup in the form and their information is stored in my database. Now I want to make a login system that will match the email and password from my “Signup” database and I also want to show all the member lists with roles and descriptions from my custom database. How can I do that? Can anyone kindly help me?
import wixData from'wix-data';
let DATABASE = 'Signup';
$w.onReady(()=>{console.log("Page ready...");
const query = wixData.query('DATABASE');
//query.eq('fieldName', 'fieldValue');
query.find()
.then((res) => {console.log(res.items);
console.log(res.items[0]);
console.log(res.items[0].title);
console.log(res.items[0]._id);
console.log(res.items[0]._owner);
console.log(res.items[0].role);
console.log(res.items[0].description);
})
.catch((err)=> {console.log(err);});
});
Take a look onto all the given CONSOLE-LOGS inside of your CONSOLE of your Wix-Editor, when running the code.
Thank you!!