From aad3497f0e0b7e1a472e29a095d64b325276965a Mon Sep 17 00:00:00 2001 From: MTRNord Date: Sat, 7 Oct 2017 01:30:49 +0200 Subject: [PATCH] Remove query parameter check as Synapse don't check it either Signed-off-by: MTRNord --- .../matrix-org/dendrite/clientapi/readers/register.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/readers/register.go b/src/github.com/matrix-org/dendrite/clientapi/readers/register.go index 670c90f2d..f1a35d4d2 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/readers/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/readers/register.go @@ -46,13 +46,6 @@ func RegisterAvailable( ) util.JSONResponse { username := req.URL.Query().Get("username") - if username == "" { - return util.JSONResponse{ - Code: 400, - JSON: jsonerror.InvalidUsername("Missing query parameter"), - } - } - if resErr := validate(username); resErr != nil { return *resErr }