Hello all,
I am trying to create an app where a specific user gets specific functions of the app. I have no idea how to do so.
I want to give a password to a user (example: 1234) and when it is entered, he is able to access specific functions of the app and so on for the others.
Some help regarding the same would be much appreciated.
Looking forward to hearing back from someone who can help.
in a Text Box accept the Code / Password.
and then match it with your Database.
Example -
if TextBox text = this
then open screen1
elseif TextBox text = that
then open screen2
.
.
.
and so on.
Keep the Codes very unique so they don’t get guessed.
And use online database to store the Codes to be entered to access the screens so they can be changed anytime by you.
User Table
1-A table with the IDs, names and password
Table Function
2- A table with the id, function name
Access Table
3- A table with Id, User Id and Function Id
When a user enters the app [Update] take the fields from the online table and save their ( fields id and all id function in database local (Sqllite).
When the user is accessing a function, look in the Access table [Sqllite Local Table ] if the user id has this authorization (function id).
Thus, it is only necessary to change the bank that the administrator is giving or canceling access to.