Sign in with username and password for private apps

I’m trying to use 2 apps together one for the normal users and one for the admins so I can only use email address from table mode in the privacy settings and it’s very annoying and less safe for the admins and I had to make an app for each admin which taking some time by duplicating an existed admin app and changing the settings and I have about 75 admins here soooooo .

I guess I’m not understanding. Why do you need to create separate apps for each admin?

Because every admin has a private code that is automatically added when the admin share an item


What is the purpose of that code?

Is it:

  • for other users to gain access to the item that’s been shared?
  • for other Admins to gain access to the item?
  • only used by the Admin that shared it?
  • something else?

Can you describe how the code is used?

only used by the Admin that shared it

Okay, so I guess I’m in the same boat as Jeff.
I still don’t understand what the purpose of that code is, or why you’re creating a separate app for each admin.

User row owners? Surely? But maybe I don’t understand either?

It just seems like something is set up very wrong here. What you have described so far does not seem like something that would be a problem that would cause you to create separate apps.

There should not be any reason to create that many separate apps when it could be done in a single app instead. We are just trying to understand why you feel the need to create separate apps for each admin. We don’t know anything about your app, so we don’t know what that code means or what it’s used for. We don’t know what your specific problem is that makes you feel that you need to create separate apps. We don’t know why you feel the admin data is unsafe.

We are just trying to understand your app flow and your problem so we can help you structure things more efficiently. From what you have shown so far, I see absolutely no reason why this can’t be one app for all admins. We need more information other than “admins have a code that they use”. I don’t know what that means.

2 Likes

Check out this video maybe it will be helpful

Also my app link

Is your goal that each admin should only be able to see their own data?
If that’s the case, just use a single app and apply row owners.

1 Like

Thank you for your help ,I think that I have a lot of work here I’ll create a new app and try out the row owner feature and see if it works

Yes, I agree with @Darren_Murphy. This just seems like a simple case of applying row owners for data security, if you need it, and as an easy way to filter data.

Even without using row owners, you could set up user profiles in the app and point it to an admin table where you store info for each admin, including the code. Then you can set the item list to filter based on the signed in admin’s user profile code. When an admin creates new items, you can also automatically include their code by passing the code from the user profile through the form to the items table. User profile values are available throughout the app for many things, such as filters, visibility, passing the values through forms, etc. Glide knows who the signed in user is, so it pulls data from the correct user profile row.

Now, I don’t know how this all ties in with signing in with a username and password. That seems like a completely separate request. I don’t know how that would have made this problem any simpler. When a user signs in with the current email/pin method, then you are able to use these features, such as row owners, user profiles, and anything else that requires glide to know who the signed in user is.

1 Like

The easiest way is creating a new app for administrators only so I don’t have to make a sheet that contains both admins and users

The solution was much easier I just had to use a new tab for login and hide all the other tabs by set the invisibility to : user image is not empty
In the profile tab I had to do some tricks in the user profile table so I added a lookup column that looks for the user password in another table (admins info table) and a relation column to look for the private key in the admin info table so when the admin use his own private key and password the app will show only the items that belongs to him and because I set the invisibility to user image is not empty I had to set the user image picker invisibility to the following settings :
Show components when Name is not empty
and password is password column (the lookup column)
and private key is not empty
After doing all these tweaks the admin have to enter his name (any username he wants it’s not important) , password and private key and if the password and private key is incorrect the image picker will not show up
After entering the correct info the image picker will show up and when the admin choose an image the profile tab will disappear automatically and will be accessible from the menu and the new tab that I created early for the login will disappear and will not be accessible anymore because the admin has completed his profile