Hi All,
I would appreciate some help regarding the connecting of a Wix database and a login which allows for fully customizable login. If someone could help me this would be great and very very appreciate.
[Note: Variable names and Database Name has been changed due to security]
export function loginStudent_click(event) {
var userS = $w(“#usernameS”).value;
var passS = $w(“#passwordS”).value;
var accessC = $w(“#schoolcode”).value;
if (wixData.query(‘Doves_000’).contains(‘username’, userS).find() === true )
{
if (wixData.query(‘Doves_000’).contains(‘password’, passS).find() === true )
{
if (wixData.query(‘Doves_000’).eq(‘title’, accessC).find() === true )
{
wixLocation.to(“https://www.google.com/”);
}
}
}
}
Again, thank you!