0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-21 12:28:45 +02:00
Go to file
Thibaut CHARLES ec30d143cd User registration return M_USER_IN_USE when username is already taken (#372)
When registering a new user using POST `/_matrix/client/r0/register`, the server was returning a 500 error when user name was already taken.

I added a check in `completeRegistration` to verify if the username is available before inserting it, and return a 400 `M_USER_IN_USE` error if there is a conflict, as [defined in matrix-doc](https://matrix.org/speculator/spec/HEAD/client_server/unstable.html#post-matrix-client-r0-register)

Signed-off-by: Thibaut CHARLES cromfr@gmail.com
2017-12-19 09:49:42 +00:00
docs Add some basic docs about opentracing (#366) 2017-12-05 14:55:27 +00:00
hooks run commit hook on what we're committing (#356) 2017-11-27 12:19:04 +00:00
jenkins use matching sytest branch, or develop 2017-09-20 12:08:24 +01:00
scripts Use the right linter versions (#370) 2017-12-12 10:25:38 +00:00
src/github.com/matrix-org/dendrite User registration return M_USER_IN_USE when username is already taken (#372) 2017-12-19 09:49:42 +00:00
vendor gb vendor update github.com/matrix-org/gomatrixserverlib 2017-12-12 10:26:25 +00:00
.editorconfig Add .editorconfig (#179) 2017-08-05 02:25:40 +01:00
.gitignore Make media repo use error rather than jsonErrorResponse (#235) 2017-09-19 11:40:21 +01:00
.travis.yml Remove unused webhook 2017-12-15 14:10:28 +00:00
CODE_STYLE.md Code Style: Prefer WithFields over Infof (#349) 2017-11-22 09:35:25 +00:00
CONTRIBUTING.md Mention how to run the linters in documentation (#310) 2017-10-17 17:11:00 +01:00
dendrite-config.yaml Add database.naffka to example config (#350) 2017-11-22 15:46:49 +00:00
DESIGN.md Clean up README a bit (#289) 2017-10-10 09:33:41 +01:00
INSTALL.md Add database.naffka to example config (#350) 2017-11-22 15:46:49 +00:00
LICENSE Add Apache Version 2.0 license and headers to all golang files 2017-04-21 00:40:52 +02:00
linter-fast.json Update gometalinter, and disable gas (#371) 2017-12-08 19:13:17 +00:00
linter.json Update gometalinter, and disable gas (#371) 2017-12-08 19:13:17 +00:00
README.md Clean up README a bit (#289) 2017-10-10 09:33:41 +01:00
WIRING.md Add misspell and gofmt simplify to the pre-commit hooks (#138) 2017-06-12 18:30:47 +01:00

Dendrite Build Status

Dendrite will be a matrix homeserver written in go.

It's still very much a work in progress, but installation instructions can be found in INSTALL.md

An overview of the design can be found in DESIGN.md

Contributing

Everyone is welcome to help out and contribute! See CONTRIBUTING.md to get started!

We aim to try and make it as easy as possible to jump in.

Discussion

For questions about Dendrite we have a dedicated room on Matrix #dendrite:matrix.org.

Progress

There's plenty still to do to make Dendrite usable! We're tracking progress in a spreadsheet.