pfn / passifox

Extensions to allow Chrome and Firefox (4.0+) to auto form-fill passwords from KeePass (requires KeePassHttp)
GNU General Public License v3.0
908 stars 186 forks source link

Trigger OnChange events #579

Open Warloxx opened 7 years ago

Warloxx commented 7 years ago

on some pages I am encountering a problem. I can't login until I manually change the password and or login name fields. Only then the page recognizes that I actually provided login information and proceeds with the login.

A specific example: patreon.com When the page is just loaded the password field has thees classes: <input required="" class="patreon-input patreon-input-size-fluid ng-pristine ng-untouched ng-invalid ng-invalid-required" name="password" placeholder="Password" ng-model="loginUser.password" type="password"> After clicking in it with the mouse, i.e. to open context menu and let passifox fill in credentials, it changes to this: <input required="" class="patreon-input patreon-input-size-fluid ng-pristine ng-invalid ng-invalid-required ng-touched" name="password" placeholder="Password" ng-model="loginUser.password" style="" type="password"> this only changed: ng-untouched -> ng-touched

Now all my cedentials are entered. But clicking Login will not work.

Entering a character and removing it in each field manually will result in the following field: <input required="" class="patreon-input patreon-input-size-fluid ng-touched ng-dirty ng-valid-parse ng-valid ng-valid-required" name="password" placeholder="Password" ng-model="loginUser.password" style="" type="password"> Now I can click Login, which finally actually logs me in.

Could passifox be changed in a way so that it triggers events as if it where typing?

k3a commented 7 years ago

After a quick look at the source it looks like PassIFox (on firefox) works like a password manager storage component (nsILoginManagerStorage) so it integrates seamlessly with Firefox. Meaning the actual password fill is probably made by Firefox itself.

I had the same problem as you actually but now it surprisingly works. I don't know why. I just enabled Security->Remember logins for sites in Firefox settings and I also inspected saved logins by clicking on "Saved logins..." button on the same settings page. Could that "fix" it? Now it auto-prefills user and password fields and I can just click the login button. Strange.