1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-19 22:41:59 +01:00

Merge branch 'allow_appservice_registration' into 'master'

Always allow appservices to register new users

See merge request famedly/conduit!105
This commit is contained in:
Timo Kösters 2021-06-21 10:15:48 +00:00
commit fee7d3d2e3

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.",