I’m familiar with online databases, but new to Adalo.
I want to allow my app users the ability to create logins for people so they can view the user’s information. Is this possible in Adalo? Any help/directions are greatly appreciated it.
Hi @dblackard,
User management is possible in Adalo, but you need to clarify the question.
What do you mean by “logins for people”? What user’s information they (who?) want to view?
To start with, you need to define app functionalities and the user flow, and only then you’ll be able to get an answer if it’s possible in Adalo or not.
There are actions “sign up” (which is used for account creation and immediate login after), “log in” (which is used as for user login), “log out” (obviously for logout). There is also a possibility to create a record in Users collection (action Create → Users), so that the app could be set up to create user accounts. “Email” field is used a unique userId, password is mandatory. There are some tricks related to collection permissions when editing password, but this is a separate subject.
Hope this helps.
Best,
Victor.
Hi Victor
Thank you for responding so quickly.
I apologize for giving a one sentence explanation to make my request.
Please let me give a scenario and not focus on the technical aspects.
My app will have subscribers who will enter personal information and upload documents.
The subscriber will then want to let a few of their family and/or friends view that information and documents.
How can the subscriber give them access to the info/documents in Adalo? Or can this be done.
Thanks again for any help.
Best Regards,
Dave
Hi @dblackard,
Thanks for clarification, this provides more details. In general, I see the following options here:
- family/friends can also sign up as app users (e.g. with some invitation code), and have access to the documents uploaded by a certain user
- family/friends can view documents without signing up, with access code (somewhat less secure)
- if we’re talking about files/pictures, user can upload them to Adalo and then send links to family/friends.
Best,
Victor.
Victor
I’m very grateful for your assistance.
To avoid family/friends from having to subscribe to the app.
Is there documentation that helps with the second option?
Anything is appreciated.
Best Regards,
Dave
Hi @dblackard,
Unfortunately I’m not aware of any tutorial specific for your case. To start with, I’d use the following approach:
- create a “Documents” collection, with the relationship to Users and other required fields (doc name, doc file or image, description, etc.)
- add a field “Access Code” to Users collection (type text)
- when a new user signs up, generate a unique access code and save it to this property. I’d use something like RAND(10000,99999)-RAND(10000000,99999999).
This will generate codes like 91423-51299413 which are relatively easy to enter and also which are relatively unique and difficult to guess. Minus is a character here. - when a user adds a document, you set a relationship to this user (so that you will be able to create a list of documents filtered by a certain user).
Then to display documents for non-logged-in users, you have multiple options.
For example, you can create 2 screens. On the 1st screen you have input to enter the code and a single-item-list with button inside. This will be a list of users, filtered by User->Access Code is equal to Input. List should be made conditionally visible (when Input is not equal to empty). The button leads to 2nd screen. The resulting action is that when someone non-logged-in enters this screen, they see the input. They need to enter the code, and when it equals to a certain code in Users collection, this record is displayed in a list (which has button). So basically you’ve found the necessary user.
On the second screen, in turn, you will have “Current User” as available data. And you can create a list of Documents, filtered by Current User.
An alternative could be adding a code to the document itself - also a possible solution.
Please keep in mind that all these solutions are not aimed to provide proper document protection from unauthorised access - just a basic “code block”. Experienced tech person can easily access them with some hacky workarounds.
Best,
Victor.
You’ve given me a challenging endeavor Victor.
I’m grateful.
Best Regards,
Dave
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.