fix: correct autocomplete attributes to enable password manager autofill #3737
+3
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Pull Request Title
💡 Description
Summary
Fixes #3735
Password managers (Chrome, Firefox, Brave, etc.) were not detecting the email/username field in the login form.
As a result, users had to manually click the password field to see their saved credentials, making the login experience less intuitive.
This PR updates the
autocompleteattributes on both fields to comply with HTML autofill standards, ensuring password managers correctly detect and autofill saved credentials.Current Behavior (Before Fix)
usernamefield usedautoComplete="off", preventing autofill detection.Rendered HTML (before):
Result:
Password managers did not auto-suggest saved accounts.
New Behavior (After Fix)
autocomplete="username".autocomplete="current-password".Rendered HTML (after):
✅ Result:
Credentials are suggested and autofilled immediately across all major browsers.
Affected File
Testing
Browsers Tested
Verification Steps
/login.Why This Matters
This fix improves login UX consistency and aligns with best practices for autofill and accessibility.
No impact on backend logic or authentication flow.
References
Reviewer Note
🧩 Commit message