-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Implement API for username availability #432
Conversation
Requires synapse with matrix-org/synapse#2183
Requires matrix-org/matrix-js-sdk#432 for availability checking. Changes: - Redesign the dialog to look more like element-hq/element-web#3604 (comment) - Attempt to fix wrong password being stored by generating one per SetMxIdDialog (there's no issue tracking this for now, I shall open one if it persists) - Backwards compatible with servers that don't support register/availability - a spinner will appear the first time a username is checked because server support can only be determined after a request. - Rate-limited by a 2s debounce - General style improvements
To be correct it requires matrix-org/synapse#2209 |
thanks, @krombel |
looks ok, but why is this a POST rather than a GET? |
@richvdh I made the mistake of thinking a |
yes, but why put the user id in the body rather than a query param? |
Good question. When I originally proposed this, the response was largely "small things like this don't need a proposal". Things like this would probably have been looked at if a proposal was made. |
I shall modify this PR to reflect the changes to the synapse API - it shall be a |
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.
lgtm
@krombel if the endpoint is not available on the server, a |
OK. Good to know. Thanks |
Requires synapse with matrix-org/synapse#2183 and matrix-org/synapse#2209
Update: this needs to be changed to reflect matrix-org/synapse#2213