New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable autocomplete for browser saved password #35709
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Here there is a validation error if a password is stored and the register block is integrated as a modal. Since it is the registry page, it should be a new password either way. Error: jquery.validate.js:164 Uncaught TypeError: Cannot read properties of undefined (reading 'settings') at jQuery.fn.init.rules (jquery.validate.js:164:63) at $.<computed>.<computed>._calculateStrength (password-strength-indicator.js:75:42) at $.<computed>.<computed>._calculateStrength (widget.js:132:25) at HTMLInputElement.handlerProxy (widget.js:611:7) at HTMLInputElement.dispatch (jquery.js:5430:49) at elemData.handle (jquery.js:5234:47) Code Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#browser_compatibility
Hi @in-session. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
I think failing tests are not related to changes from this PR |
@in-session could you please describe the steps to reproduce the issue? Thanks! |
The problem exists especially if you have a login tab popup on all pages and use the default block there. This then leads to validation errors. |
Changing autocomplete from off to new-password is a good thing, but the fix won't solve the error from the screenshot. That error is caused by the fact that you probably have 2 templates with the same form ID. Changing the id from the custom template to another one (ex: "form-validate2") and applying the validation in that template to the new ID will fix that. |
Here there is a validation error if a password is stored and the register block is integrated as a modal.
Error:
Code Reference:
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#browser_compatibility
After the change this is no longer the case, a registration page should always use a new password.