Auth pages do not support password generation managers due to autocomplete="off" #12825
Replies: 2 comments
-
Can I work on it ? |
Beta Was this translation helpful? Give feedback.
-
Hi @DriesCruyskens, thanks for the detailed issue report and for digging into this! The reason we have Currently, even if we enabled That said, we definitely want to improve this. Password generation / management, adding a visibility toggle and overall UI/UX enhancement of our auth forms are items we plan to support. I will mark this as a feature request so it can be prioritized and hopefully make it onto our roadmap soon. Thanks for your patience and for raising this 🙏 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Bug
The built-in pages for account creation, login, and password reset all have
autocomplete="off"
on their password input. Consequently, chrome does not propose to generate a password neither when creating the first admin account as well as when resetting your password through the 'forgot password' functionality.This works fine during log in because chrome password generation manager ignores
autocomplete="off"
when it detects a username field in the form as explained here. It still breaks account creation and password reset I think because its username also hasautocomplete="off"
during account creation and there is no username field during password reset.proposed solutions:
I don't know how to fix it from the top of my head but the following pages might contain a solution:
Feel free to point me in the right direction (where in the payload repo I can find this) so I can debug this further myself and create a pull request, or so that I can at least to create a local patch so payload users can get it to work until a fix is made.
The reproduction is just a new
pnpx create-payload-app@latest
with sqlite with with url-join installed to print the reset URL in email subject so it's available in the console.Link to the code that reproduces this issue
https://github.com/DriesCruyskens/password-reset-does-not-support-pwmanager
Reproduction Steps
pnpm dev
http://localhost:3000/admin
in stock chromeWhich area(s) are affected? (Select all that apply)
area: ui
Environment Info
Beta Was this translation helpful? Give feedback.
All reactions