@peterhashair opened this Pull Request on December 6th 2021 Contributor


Fixes white-label, when modal open password manager autofill the field in the back, update to read-only fields on modal opens. Revert to normal when modal closed.


@peterhashair commented on December 13th 2021 Contributor

@sgiehl I did a screen capture on that one, it seems like autocomplete=off didn't prevent the autofill, but the read-only does, for Bitwarden and another third part password. See the screen capture.


@sgiehl commented on December 13th 2021 Member

Yes. It works for my password manager too. But I actually can only repeat my last comment. It works for the tested password managers. But as soon as any password manager is able to set a value for that field it will break again.
Btw. disconnecting the password input from angular would even solve another issue: When the modal is currently opened and you type something into the password field, but click No, the modal will be closed without clearing the password field. Due to this the next click on the save button, will simply use the password typed before, without opening the modal again.

@peterhashair commented on December 15th 2021 Contributor

@sgiehl did a simple approach, hopefully that disconnect the password input

@sgiehl commented on December 15th 2021 Member

@peterhashair That wasn't what I had in my mind, also it actually changes the behavior. Before the password confirm was only shown when saving some admin configuration. Now it is also shown for user configuration. What I had in mind, was removing the ng-model from the password field and instead fetch/set the value with javascript when it's needed.

@peterhashair commented on December 16th 2021 Contributor

@sgiehl update its discount password field. I notice this is in the process of converting to VUE on this PR #18432, did a VUE version as well which is here #18515, I probably can drop this PR.

@sgiehl commented on December 17th 2021 Member

Yep. closing this one in favor of the vue PR.

This Pull Request was closed on December 17th 2021
Powered by GitHub Issue Mirror