Hello Wix Community
I’ve been wanting to make a login page which requires a Email ID and Password, and the Login Details(Email ID and Password) would be stored in a wix database. Now I want it such that when the user logs in, there are 2 buttons that are shown, a logout button and a my profile button. Then when the user clicks on the My Profile Button, the user should be redirected to a dynamic page which shows the users details and only site members can access that dynamic page. And if the user clicks on the logout button he/she should get logged out of the account.
I was following this post:
But this doesn’t seem to work and I also don’t want the signup and google sign in things.
Can someone please help me code this out as it is very important for me??
Thank You
This user works on a similar topic. Perhaps he will be able to help you out.
https://www.wix.com/velo/forum/coding-with-velo/add-grid-list-for-member-in-dynamic-page
Important parts which you could need to fullfill your project you will find here…
https://www.wix.com/velo/forum/coding-with-velo/input-value-redirect-1
and here…
https://www.wix.com/velo/forum/coding-with-velo/how-can-i-retrieve-a-value-from-database
The working flow of your project …
- User logs-in.
- User gets redirected onto your dynamic-profile-page.
- On your DP, an automatic onReady-function starts a filtering process, which will filter all user-related items inside your ITEM-DB, regarding the current user ID (who is logged in?).
- After filtration, you feed a REPEATER with the RESULTS of the FILTERING-PROCESS.
- Your REPEATER is on the DP (dynamic-page).
Just some theoretical thoughts.
Perhaps this also could be useful for you …
Good luck and happy coding!