Greetings,
My live website url is https://www.goparty.xyz/
What I'm trying to do is,
1/ A customized sign up and login using lightbox
2/ Restrict people to sign up only for the people in India.
The code I used so far is not working. Please somebody help me to find what's wrong.
Code for the lightbox named "Register" is....
import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; $w.onReady(function () { //TODO: write your page related code here... $w('#submit').onClick(function () { let user = $w('#user').value; let email = $w('#email').value; let password = $w('#password').value; wixUsers.register(user, email, password) .then(() => { wixLocation.to('/USERS/${wixUsers.currentUser.id}'); }) }) });
Code for the login lightbox is....
import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; $w.onReady(function () { $w('#login').onClick(function () { let email = $w('#loginemail').value; let password = $w('#loginpassword').value; wixUsers.login(email, password) .then(() => { wixLocation.to('/Users'); }) }) })
Nothing is happening after clicking the submit button in register. Please help me out