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
Make login/registration page password manager friendly #1534
Comments
It may already/also help password managers (including in-browser ones) to use the proper
|
Alright, let's see if using the correct autocomplete hints will maybe fix the password manager problem. |
As developer of a password manager, I'll say that it's unlikely. Groups of fields with distinct semantics within the same Worth mentioning also, that the autocomplete hints are not nearly reliable enough to take for granted - the web is messy, and whatever assumptions you make about them, there will be a page that breaks that intentionally or not. For that reason they are only used as an input to form matching heuristics, not fully relied upon. Anyways, I'll check if this helped in our case when I see this shipped, and possibly reopen if it didn't. Thanks! |
Sounds good – thanks! I suppose we can also pull this apart into two HTML forms while keeping the single Django form. How would we indicate which form is which in that case, though? What would help the password manager decide which form is which, if autocomplete hints don't work? |
If there are two forms, both of them will be straightforward to detect for what they are :) |
I pushed a WIP addressing this request in https://github.com/pretalx/pretalx/tree/auth-form – it's WIP because the most-relevant place this form appears in, the CfP flow, doesn't actually use that template as form, and instead provides its own form element several template layers up. Tearing that out/down is going to be a major hassle, so I'd prefer to avoid it if at all possible. |
Problem and impact
The login and registration forms are both on the same page, and share a
<form>
element. That's not a technical issue per se, but throws off the login form detection algorithms of password managers since they'd have to distinguish different sets of inputs for different purposes.(It's also semantically less nice markup than it could be, but that alone certainly wouldn't be worth any effort 🤷)
Proposed solution / feature
Use two separate
<form>
elements for the login and registration formsContext or examples
pretalx logins are bound to events thus fairly short lived by nature, so it's particularly convenient to have a quick signup/login process.
The text was updated successfully, but these errors were encountered: