Always allow appservices to register new users

next
phesch 2021-06-19 16:12:05 +02:00
parent 2ac7b6d411
commit 637d9d3b6f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ pub async fn register_route(
db: State<'_, Arc<Database>>,
body: Ruma<register::Request<'_>>,
) -> ConduitResult<register::Response> {
if !db.globals.allow_registration() {
if !db.globals.allow_registration() && !body.from_appservice {
return Err(Error::BadRequest(
ErrorKind::Forbidden,
"Registration has been disabled.",