diff --git a/src/client_server/account.rs b/src/client_server/account.rs index 2fc8b19..f495e28 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.",