mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Remove query parameter check as Synapse don't check it either
Signed-off-by: MTRNord <mtrnord1@gmail.com>
This commit is contained in:
parent
d7ff90bf9c
commit
aad3497f0e
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue