Recently a user complained about the log in form not saving the credentials. This is a common problem with AJAX and single-page applications. But I decided to get to the bottom with it.
The UserApp “dashboard” is built with the JavaScript framework AngularJS, and it doesn’t play along very well with the “save password” feature. These are the issues I addressed:
* The form cannot be dynamically inserted into the DOM.
* The form must perform an actual POST request.
* When the browser autofills the fields, the scope doesn’t get updated.
Firefox was easy, all it required was that the form had a name attribute.
Your new post is loading...