-
-
Notifications
You must be signed in to change notification settings - Fork 829
Add url param defaultUsername
to prefill the login username field
#5674
Conversation
409e19c
to
96df810
Compare
@djschilling In general, it's quite hard to review a random PR like this without the motivation. There might be many other ways to solve the problem. Could you file an issue about the use case, so we can track that separate from this one possible solution? |
@jryans you are right my bad. i now created the issue for this pull request: element-hq/element-web#16573 |
@jryans can you have another look at it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think this makes sense conceptually, but let's tweak a few details first.
After making these changes, please click the re-request review wheel at the top right so I see your updates.
Signed-off-by: David Schilling <[email protected]>
96df810
to
5c67436
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code here looks okay to me, but before approving I'd like to understand your comment that the username is not removed from the URL for you. See my new comment in the thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, glad to hear this is working as expected. 😄
defaultUsername was added in matrix-org/matrix-react-sdk#5674. I'm not aware of any others but they may exist. Signed-off-by: Aaron Raimist <[email protected]>
This adds the possibility to provide a default username as url parameter
defaultUsername
for the login forumlar.Fixes element-hq/element-web#16573