Linking login/registered users to members

i have used via wix code the default wix sign in and register options which prompts users to log in or register when clicking on the retrospective buttons.
what my problem is:
how do i get the user, who has signed up to then have a members profile, i.e when they sign in through email/password it will then redirect them to their own member profile in which they fill out their info (i have already done this part) just need to know how to link the users who sign up to the members.
is there a way of passing a sort of ID to the collection to add a user, obviously i dont want to know password, but if there was a way to link signed up users to a collection somehow so then users can sign in to the system and then use the website as intended with the use of the members dynamic pages.

#login #register #collections #members code

https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
https://support.wix.com/en/article/adding-a-members-area-to-your-site

hi @givemeawhisky ,

thanks for the input. i have already done this, and it works fine, my point is that when a user registers or logs in, its done through the site members in the dashboard, and does not update as a member within the members collection. I want to know how i can make it so when a user register or is promt to log in, they can log in or register which will then connect to their own personal member id so that then their content can then be displayed.

thanks

Yes that is because all the details are stored in the Wix Members PrivateMembersData dataset which is read only, hence why you need to make a new dataset when you want to create their own profile pages that they can change.
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields

If you want to display their data from this collection, then you need to create a dynamic page that takes info from this dataset and is displayed on the page, although none of it will be able to be edited by the user.

Remember though, that if you use the Wix own signup window, then all you are collecting from your newly registered member was what was on that register form, so email, password and first and last name only.

If you create your own custom signup and login lightboxes, then you can get the user to input more details about themselves on signup, so that you will have more fields in the Wix Members PrivateMembersData dataset filled in already.
https://support.wix.com/en/article/corvid-tutorial-creating-a-custom-registration-form-with-code

However, if you are wanting users to be able to change anything in their profile, then you will need to have the new dataset as described in the building your own members area tutorial in my previous reply, so that they can change their details in this dataset.

Finally, another way of getting a profile page sorted is to use code like this to retrieve the values from a dataset.

$w("#dataset1").getCurrentItem().fieldName; 

More info about it through API:

thanks @givemeawhisky , really appreciate the help!