I am trying to make a light box where the user can register. my last line of code is displaying an error.
This is my code:
import wixUsers from ‘wix-users’;
$w.onReady( function () {
$w(‘#register’).onClick( function (){
let firstName = $w(‘#firstName’).value;
let surname = $w(‘#Surname’).value;
let email = $w(‘#Email’).value;
let mobilePhone = $w(‘#mobilePhone’).value;
let Age = $w(‘#Age’).value;
let password = $w(‘#Password’).value;
let postCode = $w(‘#postCode’).value;
let houseNo = $w(‘#houseNo’).value;
wixUsers.register(email,password, {
contactInfo: {
“firstName”: firstName,
“surname”: surname,
“mobilePhone”: mobilePhone,
“Age”: Age,
“postCode”: postCode,
“houseNo”: houseNo
}
})
.then( (result) => {
let resultStatus = result.status;
});
I get the error right at the end saying ‘unexpected token’
someone -please help