Closed kh90909 closed 8 years ago
Should the "Remember me" checkbox from the login page be stored in the settings object? Probably - and if so, should it also be represented in the settings modal?
I don't recall having ever seen a "remember me" setting within a web app (in a settings section after logging in, that is). Have you? I think storing it in the settings object would be fine, but I don't think it's a big deal if we default it to unchecked either.
in progress.
Now that we have a setting field outside of the #settings
form, we can't simply serializeArray
and save. This moves us toward a pattern where adding an HTML attribute of setting
on a tag will qualify an input as a setting, and then we can parse $('[setting]').each()
for all available setting states.
Login UI demo: https://rawgit.com/emcniece/OakTerm/feat/58-login-save-msg/index.html
e.g.
"No login information is stored on digistump servers. Your access token for the Particle Cloud is stored locally in your browser only, so that you don't have to log in each time you reload the page".
Optionally, add a "Remember me" checkbox that controls whether the access token is saved to localStorage. Otherwise, tell the user that the logout button will clear the saved token.