Save login and password

On most websites, after a successful login you are prompted with browser-based popup asking if you wish to save that login.

Does webix have any sort of way of enabling this or is it just pure javascript? I’ve found several pages referring to using the submit method in the login form, but my application doesn’t use submit since it is all one page.

I’ve also read about webix.storage.local but I’m am unsure as to how secure it is to save a password there and whether or not it has the prompt asking if the user wants to save it or not.

There is no way to use the native password storage from JavaScript. Some browsers (e.g. Google Chrome) only show the save password dialog after a redirect happened due to the submission of a form with a field with name="username" and a field with name="password". To use the native password storage, you’d have to use a regular form with a regular submit button.

Saving passwords in local storage sounds really insecure to me. You would have to replicate the security features of a password manager in JavaScript to sufficiently encrypt passwords. I don’t know if that’s even possible using JavaScript, but I wouldn’t personally attempt to write such code as it is destined to fail at some point.

Thank you, Marius.

Igorsousa, you can also check the related discussion for hints on emulation of the regular form.