Creating a login page and comparing input with data set.

Hi, can you guys help me with something ?
i’ve created page that has input fields of ID and Password. i’ve also created a data collection “Members” that has the fields ID and Password. what i’m trying to do is give only login access to who puts information that is compatible with the information in the data collection. how can i do that ?

1 Like

Hey,

Please review the article " How to Create Member Profile Pages with Wix Code "

Thanks,
Tal.

Hey thanks for the fast response.
i’ve reviewed the article and i still don’t know which parts of the provided code to modify.

above is my login page components and my data collection. I want to allow only this user to log in with these specified information, comparing the input with the data collection info.
This would really help in the project i’m working on.
Thank you.

Hi Fadal,

It appears that you are trying to build a member system. Note that we already have a built-in solution for that, as mentioned by Tal above.

Can you please elaborate what you are trying to ultimately achieve by creating this system?
This might help us direct you better.

To make your form work, you will need to query your collection with the help of Wix Data Query and compare the password field with the stored password.

Note that there are two problems with this method:

  • Passwords are stored as plain text in your collection which is not recommended
  • There is no option to set an input box as a password type. This means that the password will be visible while the user is entering it.

I currently have a similar dilemma…

I am trying to setup a site whereby I give every member their login details and they can update as they wish (if at all) to see information on the site related to them.

Is this possible with current wix capabilities?

Hi,

Yes, it is possible and requires coding.
See Tal’s comment above for more information.
Note that the login system is based on email + password, not username and password.

Hi Ido,

With Tal’s comment above, I believe it is using the “built-in” login system of wix. How about if we want to customize login pages (say during login or registration we would want to add more fields i.e. name, company, school, etc.) is it possible with current wix capabilities? Can we create our own version of login system?

Also, I’d like to confirm if the “built-in” login system of wix can also retrieve password created by new users and place it in the collection? I can’t seem to find that in the code provided by the link above.

Hi,

Due to security reasons, it is not possible to retrieve the plain text password from the built-in login system, nor it is possible to customize the log-in experience.
You can vote for this feature here

To have complete control over the registration experience you will have to code everything (log in process, user + password storage, password retrieval, page permissions etc.) from scratch.

Hi Ido,

Thank you for your response. I’ve just voted for this feature.

Also, thank you for clearing it up for me. Have a good day!

  • Ron

Hello,
Can someone give the code to make this happen?

if users are filling my queries form so how could i raise ticket each users and send the queries mail both of them user and admin too