From b8a7ff9cb192370af775e31ff3f502df8c148151 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 29 Nov 2017 16:38:42 +0000 Subject: [PATCH] Fix typo --- .../matrix-org/dendrite/clientapi/routing/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }