Is there a way to find out that the login is authorized as a result of the built-in "remember password" function of the browser?

Browsers, such as Firefox or Chrome, offer to remember the password when you first log in to the page; this function automatically fills in the corresponding user / password combination in the login form the next time the user visits the specified page.

My question is, is there a way to find out that the browser automatically completed these fields? the event changedoes not fire; in fact, according to monitorEvents, nothing works. I resorted to using an interval that periodically checks if fields are empty or not, but is there a better way?

+4
source share
1 answer

I'm sure Chrome is triggering a change event. I experienced this recently (by accident). It is also already documented in Chromium Issue 135307 .

Not sure about other browsers, but if you are writing a periodic check, it will probably be the only solution. This code seems solid.

+2
source

All Articles