I am now in this project, the account password is saved in localStorage.
1. Log in to the interface to determine whether the user checks to remember the password. If so, after interacting with the backend to determine whether the login is successful, save the account and password entered by the user in localStorage, in the form of key-value pairs.
2. Enter the login screen again to determine whether there is an account and password field in localStorage, and enter it in the input input box if so. This is the general idea of
.
I read other people"s articles that it is not safe to encrypt the account password and save it in local Storage or cookies.
I read other articles (shell.cn/articles/5353.html" rel=" nofollow noreferrer "> https://coolshell.cn/articles.) that seem to save the user name, login sequence, login token in cookies.
what is the general method of engineering?