diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go index b94f249af..d19c97b1a 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -304,7 +304,7 @@ func LegacyRegister( } } - if cfg.Matrix.RegistrationDisabled && r.Auth.Type != authtypes.LoginTypeSharedSecret { + if cfg.Matrix.RegistrationDisabled && r.Type != authtypes.LoginTypeSharedSecret { return util.MessageResponse(403, "Registration has been disabled") }