From 637d9d3b6f0f9cf7e4f35d08a11e1b1e69ef1e96 Mon Sep 17 00:00:00 2001 From: phesch Date: Sat, 19 Jun 2021 16:12:05 +0200 Subject: [PATCH] Always allow appservices to register new users --- src/client_server/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_server/account.rs b/src/client_server/account.rs index 56de5fc..9de482c 100644 --- a/src/client_server/account.rs +++ b/src/client_server/account.rs @@ -88,7 +88,7 @@ pub async fn register_route( db: State<'_, Arc>, body: Ruma>, ) -> ConduitResult { - if !db.globals.allow_registration() { + if !db.globals.allow_registration() && !body.from_appservice { return Err(Error::BadRequest( ErrorKind::Forbidden, "Registration has been disabled.",