Hi, I have a set of dynamic pages from one dataset. I want to be able to password protect each page with a different password, so when a user clicks on a link from a repeater element but before they can view the page they will be required to enter a password. Is this possible?
You can password protect any page. The page you password protect just needs to be built with the links from your database. =)
That would be challenging depending on the number of dynamic pages, how they are created, etc. (Many variables)
Alternatively, if user is logged in you could create a database with âpermissionsâ and if the person has permission to view that page it will allow them to view it otherwise redirect them somewhere else.
Or if person is not logged in, you could have them enter a âpasswordâ one time, store it in session / cookies, and then allow them to view âxâ pages, etc.
There are many many ways to create a solution for this.
Whatever approach you take â it may be a bit time consuming to create and/or maintain.
Thanks for your repy Brett, can you show me how?
Thanks for your reply, can you enlighten me with at least one solution? Something I can take away and try?
Alright letâs do âŚ
Scenario A: Regardless of who is logged in, they type in a word, they view content. (<----- this is the least secure method)
Page Setup: Build the entire page on strips. Make all strips hidden / collapsed on load. Add 1 user input element at the top of the page. Add 1 button.
Database setup: Have 1 field / column for âpasswordâ (<---- you can change the password as often as needed. )
Code Setup: onClick check user input, if it equals the word in the database then show / expand all the strips with content in it. Otherwise show error message.
For more details or more complete customized solution, feel free to contact me via my website . I specialize in creative & logic project planning and private tutoring (apart from coding).
Thanks CQN, I had already been trying a similar solution using javascript, but it is frustrating! I may well be in touch. Thanks again.
I have a similar potential project. 100 units each with their own log in to enter meter readings and upload a file. I have Unit 1 set up as itâs own database and own dynamic page, the appropriate input fields etc, what I donât know how to do is password protect the unit pages so only the unit owner or admin can access. I have set up basic databases this is a challenge I am trying out to see how it can be done. I was playing around with members only permissions and then got tired last night. Any insight would be great or if this has to be done with some coding please contact me and we can discuss a couple points on this clients project requests.
At this moment, you cannot simply âprotectâ each dynamic pages to different users. For example, a dynamic page to display user order. Although you may remove all element on the UI, the data still passed to your browser. It is still viewable if you know how to find that out in the browser developers tool.
My idea:
â Create a public database with a reference field for the private database.
â Create a private database with all the data.
Then, create dynamic page for the public database, then use that as a âentry urlâ for users. After it is created, use Velo Code to validate the user access. If the user match the access (e.g. userId), then pass the data from backend to frontend.
This way will mainly rely on the backend and frontend conversation.
You can send us an email to velo@editorx.co