This commit is contained in:
Erik Johnston 2017-11-29 16:38:42 +00:00
parent 3bd2095cca
commit b8a7ff9cb1

View file

@ -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")
}