Hi guys, this is the current scenario
Inside my business, I have one main computer for all of the staffs and whenever they are going to add/edit a new item I want to be able to know which staff did it. I have been easily able to use a PIN to add the item because each STAFF has its own PIN and when he types it I get to know which staff has made the action, I want to be able to do the same for edit but when the user clicks the submit button the item is edited at the same moment and cant be reverted back if he enters the wrong PIN also it is our requirment that we need to ask the PIN on the second page.
Is there any workaround for this?
If you only need to identify the user who edited the item, it’s simple. On the edit page, you can access the user ID (Row ID )of the person making the changes and use that information wherever necessary.
No, this does not work it will give me the user ID which will always be same. You are not getting my case
One computer is being used by multiple people who have their own PINS which we use to identify them once they add a signature input.
Assuming the pins you’ve assigned to users are also stored in the Users table, ensure there’s a column to save each user’s pins. If it doesn’t exist, create one and store the pins in their respective rows.
Then, for the edit button in the Collection item’s action, link it to a custom page. When a user clicks “Edit”, this page should prompt them to enter their pin. Add a workflow that checks if the entered pin matches any pin stored in the user’s “pins” column. If it matches, display the edit button on that page.
Optionally, you can fetch the user’s ID at this step. After verifying the pin, you can also clear it using a “Set column value” action within the same workflow.
It’s a bit lengthy, but this seems to be the most secure and practical approach in my opinion.
If you only have one user in the Users table or you don’t want the people entering the PIN to be actual users in the Users table, then you should create fake user entries in the Users table.
If users aren’t signed in, it might be challenging to manage visibility settings on a per-user basis
Let me explain it in more detail. When the user clicks the “Edit” button, navigate them to a new page. On this page, add a text entry field where the user can enter their PIN. Then, place a container on the page and add the actual “Edit” button inside this container.
Set a visibility condition on the container so that it’s only visible if the entered PIN matches the one stored in the Users table for that specific user. You can handle this logic using a workflow.
Additionally, within the same workflow, you can retrieve the user’s info. Finally, once the PIN is verified and the edit action is complete, you can clear the PIN using a “Set column value” action to reset it for the next use.
What i am assuming is, they have only one signed in user, but actual users are more than one who have their own pins to perform any action.
You should never store passwords in your GlideApp. Glide already has secure authentication that works.
Yes, this works for me thank you 
I need to also store the values which are not provided by glide but are used as a password like a PIN. What way does glide have for this? There is not a built-in feature that allows us to add password like values. it is quite simple the glide can just encrypt the passwords before saving and compare the encrypted password to check if this one is okay or not. It’s not a feature – It’s a bug
You can store a hashed PIN and validate it as the user types. That said, for your use case, it might be overkill.
I was doing it the same way already, but I can’t show/hide the pin like we normally can like it should you *** when I am typing and have an eye icon which on clicking show show/hide the pin
This CSS replaces text with ***
.key-input textarea[class*="wire-field"] {
-webkit-text-security: disc;
}
You can add two text entry components to the screen, one with the CSS applied and one without. You can use an icon (e.g.
) to toggle visibility between the two input fields.
Can you show me an example as I am unable to add this icon inside the text box to make it look like a pass
I also want to show like the letter I am typing should become * like after 1 second
like in this app
But I want to make it simple text input like
Have you tried the CSS I provided?
You simply add a button to the screen and toggle the visibility of the two text entry components
Nope, your solution still don’t work as there is no way of adding the eye-input next to the text input
But @Gideon_Lahav_Busines shared his component which allowed me to simply hide/show the pin like I wanted
Thanks to him and all of you for helping me
1 Like
What approach did you end up using to get it working? Did you use an AI component, or something else?