Using App Inventor 2, how do you make a log-in service in which I can save a specific Username and Password combination into the app database, so that when people use the app and input a Username and Password combination it is compared to the Username and Password that is saved in the database.
And if they are correct then they are moved onto another page and if they are wrong then they are asked to try again.
Here is a screenshot what I have attempted so far, but it isn't working
You have a lot of problems with that code. First, a problem with your TinyDB
. You store the value but you never call it. Second, I wouldn't recommend a TinyDB
unless the value of username and password will change. Below is how to make a username and password without a TinyDB
.
Without a TinyDB
:
"logic ='s"
to each side of the and statementusername.text = "(your username)"
but use it as a string using the pink string choice that is an empty " "