Kelly003 Posted June 10, 2021 Share Posted June 10, 2021 Hi, how to do something like this when the checkbox is selected in the login panel, it saves the data (login and password) Link to comment
Mkl Posted June 10, 2021 Share Posted June 10, 2021 (edited) Here my idea : You could store informations, the login and the hashed passeword in a client side file. See File functions in the wiki. And you could use JSON as a file format : see toJSON / fromJSON functions. Edited June 10, 2021 by Mkl Link to comment
Scripting Moderators ds1-e Posted June 11, 2021 Scripting Moderators Share Posted June 11, 2021 On 10/06/2021 at 21:27, Kelly003 said: Hi, how to do something like this when the checkbox is selected in the login panel, it saves the data (login and password) There's a guide for this - See How to add "remember me" functionality. You shouldn't store password on client-side, even encoded. Link to comment
Mkl Posted June 11, 2021 Share Posted June 11, 2021 Apparently what I said is a big mistake, please do not consider my previous message Link to comment
Moderators IIYAMA Posted June 12, 2021 Moderators Share Posted June 12, 2021 20 hours ago, Mkl said: Apparently what I said is a big mistake, please do not consider my previous message As long as you work with hashed passwords and not just encryption (decryption serverside), it should be fine. Working with real passwords (even when encrypted) is the reason why it shouldn't be done. When the 'remember me' is checked, the password field should be disabled and not be filled in. (or even the form shouldn't be showed) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now