Hello! I am trying to create a custom login that will connect my members to their specific profile page. I’ve created a dynamic page, and inputted the Corvid code in the lightbox, however I get this error whenever I try to test it and access a user profile.
Here is the code I have under the lightbox:
import wixUsers from ‘wix-users’;
import wixWindow from ‘wix-window’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w("#submit").onClick( (event) => {
let email = $w(“#email”).value;
let password = $w(“#password”).value;
wixUsers.register(email, password, {
contactInfo: {
“#email”: $w(‘#email’).value,
“#password”: $w(‘#password’).value,
}
} )
.then( (result) => {
let resultStatus = result.status;
wixWindow.lightbox.close();
wixLocation.to.to(“/Profiles/email”); //Change the URL ending to whatever page you want to send the user to after they log in.
} );
} );
});
I’ve already watched multiple videos and read forum posts with no success. If anyone could help it would be much appreciated:)