So from what I have seen in the Wix Code tutorials and walkthroughs is that whenever a user needs to login or signup it has to be done through the wixUsers.promptLogin() function.
What I want to do is create a custom signup form that gets connected to my User collection so that way I can save information such as name and email to the collection. Is this possible or do I just have to prompt the user to enter that information after they have singed up or logged in through the promptLogin() function? Thanks!
Hi, it is currently not possible to customize the signup form (I believe it will be in the future), so you can display your own form after the sign up and associate the information with the logged-in user.
Ok thanks Tomer. Does this mean that users must first login through wix every time before logging in to my site? Or can they just signup through wix and not have to login to wix when they login to my site?
Not sure I understand. There is no double login, only wix login. After a user logs in, you can query the database to see if you have extra information about that user. If not, you display your form.
Oh ok thanks I understand now. What I really want to do is make my site restricted to only users who have a secret code. This would only allow users who enter this code to access extra functionality. How would I go about doing this?
If a user logs in to wix but then enters the incorrect secret how would I prevent them from accessing these extra functionality? Since they are already logged in to wix wouldn’t this allow them to access any page that is for members only? Would I just have to write a function that checks the users data and if the secret is incorrect it redirects them to a page that says they don’t have access? Thanks!