element-hq / element-hq/hydrogen-web

Multiple accounts with the same localpart conflicts with browser autofill

Open
#710 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
714
Forks
131
PR merge metrics
No merged PRs in 30d

Description

I have multiple Matrix accounts all with the same `madlittlemods` localpart:

- `@madlittlemods:matrix.org`
- `@madlittlemods:gitter.im`
- etc

The problem is that if I want to sign in from both of those accounts in Hydrogen since it supports multiple accounts, Chrome's autofill will ask to update the password for the other account since it considers `madlittlemods` as the username for both.

![](https://user-images.githubusercontent.com/558581/161162255-8b700a01-4045-4a84-8fc7-1e81090d3a87.png)

## Potential solutions

Sign in with full MXID. Related issues:

- https://github.com/vector-im/element-android/issues/5615
- https://github.com/vector-im/element-web/issues/6826

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through Hydrogen's sign-in flow with two accounts sharing a localpart, then trace how the form exposes the username to browser autofill. Confirm the change using Chrome with both accounts; done means each account is stored distinctly and updating one password no longer targets the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.