I would like to save the login and password. When the app is installed for the first time, it should ask for the login and password. When the app is closed and opened again, it must remember the login and password and enter directly. How can I do this? Here is my code.
-
You do not appear to be setting a tag called
Username
in Screen1, but you are trying to return it in Screen2 ? -
What are you trying to clear, a single tag, or the entire tinydb ? The blocks you show should be emptying the entire tinydb.
I would like to clear Login and password which is strored by TinyDB beacuse I'm clicking Logout button.
if next time when app is closed and opened again it must first appear login page which is screen 1.
Here is result
Why save login and pass it in two places each?
So you thing it's better to do in one place (on Screen1)
never mind, if it is working for you.
Once again thank you for helping me! Slowly I'm getting a programmer.
On that way you might want to follow this recommendation to never store passwords in plain text in an online database
Taofun