How to create the custom login with database and link to the wix login system?

Hi

I had create a permission page for member to download the file. But I want the member to get in this permission page before need to login. So, I want to custom the login page and use own database system to login. So that I can manage the customer info and password.

Would anyone can help and how can I do that? :slight_smile:

Check here → https://www.wix.com/corvid/forum/main/comment/5f520228f276a8001715e1a6

Thanks Ajit Kumar

About the code of [ wixData . query ( ā€œuserProfileā€ )]. Is the ā€œuserProfileā€ that means point out to own data base name? :slight_smile:

Yes. instead of ā€œuserProfileā€ put your database’s name…

Thanks Ajit Kumar

I had replace the name of my ā€œmembersā€ database but nothing happen when I click the Login Button. Would you please to point me out which part of the code have the problem. I am a new guy of learning the code. Thanks for your help! :slight_smile:

@edwinlau Hi Mate!
Check if your database’s field, which contain user’s email, is ā€œemailā€ or not


Then the →

let loggedID = items[0].id   //id field

Are you referring to ’ _id’ field or is there a field ā€˜id’ in your database ???


Then in your redirection to dynamic page try this →

wixLocation.to(`/nexus-upgrade/${loggedID}`);