Remember the login and password

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.


Password and login already saved but it's not entering direcrtly
I tried this but not working

Not working

image

How to clean cookie from screen 2
Tried clearall not working

  1. You do not appear to be setting a tag called Username in Screen1, but you are trying to return it in Screen2 ?

  2. 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 for SCREEN 1


image

Here is for SCREEN 2

Now it's working Issue it was here

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.

1 Like

Once again thank you for helping me! Slowly I'm getting a programmer. :wink:

On that way you might want to follow this recommendation to never store passwords in plain text in an online database

Taofun

1 Like