mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 08:11:55 -06:00
Fix registration error when disabled
This commit is contained in:
parent
656d11ec90
commit
a9faa1bc44
|
@ -614,7 +614,10 @@ func handleRegistrationFlow(
|
|||
}
|
||||
|
||||
if cfg.RegistrationDisabled && r.Auth.Type != authtypes.LoginTypeSharedSecret {
|
||||
return util.MessageResponse(http.StatusForbidden, "Registration has been disabled")
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusForbidden,
|
||||
JSON: jsonerror.Forbidden("Registration is disabled"),
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure normal user isn't registering under an exclusive application
|
||||
|
|
Loading…
Reference in a new issue