Hello,
I have a problem with member pages. I have set up a way to register new clients in wix members (privateMembersData) and in addition, a custom database with more information.
When a client logs in using a custom lightbox, it signs in the member and redirects to /accounts/my-account
This page has a dataset link to my client database, to display some info and links for each different client, but the the info doesn’t display dynamicly, it always shows the first client on the database. Two days ago it was working properly.
I have also tried with a dynamic page, and when I redirect to the dynamic page, /client/{id}, I get an 404 error and the URL looks like /client/%7bID%7
The code for the lightbox is :
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
import wixWindow from ‘wix-window’ ;
export function submit_click(event) {
let email = $w( “#email” ).value;
let password = $w( “#password” ).value;
wixUsers.login(email, password)
.then( () => {
console.log( “User is logged in” );
wixLocation.to( “/account/my-account” ); //Change the URL ending to whatever page you want to send the user to after they log in.
} )
. catch ( (err) => {
console.log(err);
$w( “#errorMessage” ).expand(); // You can delete this line if you are not going to add an error message. Use a regular text element set to ‘collapse on load’ from the Properties Panel.
} );
}
When a member signs in, the wix account information show the member’s info, but he custom data, is always from the first client on the database. How can I connect both databases so that when a client logs in with his email/password, brings him to his private personal dashboard?
I have member sign up properties with the correct lightbox and added the righ permissions for member only.
I have downgraded my Business unlimited subscription for a Personal Combo, I hope this is not the problem. Also, I have deleted an original default wix sign up page as I thought I would not need it and now I dont know if that could be the problem too
I hope someone can help me as I have been 2 days and now I am completely lost.
Thank you,
Oscar