mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-29 12:34:19 +01:00
Always allow appservices to register new users
This commit is contained in:
parent
2ac7b6d411
commit
637d9d3b6f
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ pub async fn register_route(
|
||||||
db: State<'_, Arc<Database>>,
|
db: State<'_, Arc<Database>>,
|
||||||
body: Ruma<register::Request<'_>>,
|
body: Ruma<register::Request<'_>>,
|
||||||
) -> ConduitResult<register::Response> {
|
) -> ConduitResult<register::Response> {
|
||||||
if !db.globals.allow_registration() {
|
if !db.globals.allow_registration() && !body.from_appservice {
|
||||||
return Err(Error::BadRequest(
|
return Err(Error::BadRequest(
|
||||||
ErrorKind::Forbidden,
|
ErrorKind::Forbidden,
|
||||||
"Registration has been disabled.",
|
"Registration has been disabled.",
|
||||||
|
|
Loading…
Reference in a new issue