From 9f53177b139d56db1e357e3c6e465c4bbda0932a Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 26 Aug 2021 14:52:55 +0200 Subject: [PATCH] matrix: Add config to disable 3pid login in element web --- roles/matrix/defaults/main.yml | 3 +++ roles/matrix/templates/elementweb-config.json | 1 + 2 files changed, 4 insertions(+) diff --git a/roles/matrix/defaults/main.yml b/roles/matrix/defaults/main.yml index 9d1af17..16ce5cb 100644 --- a/roles/matrix/defaults/main.yml +++ b/roles/matrix/defaults/main.yml @@ -73,6 +73,9 @@ matrix_elementweb_disable_custom_urls: true # Should Element-Web disable guests? (without sign-in) matrix_elementweb_disable_guests: true +# Should Element-Web disable 3PID login? (Login with Email etc) +matrix_elementweb_disable_3pid_login: false + # Integration Server URLs to use (see https://github.com/vector-im/element-web/blob/develop/docs/config.md) matrix_elementweb_integrations_ui_url: "https://scalar.vector.im/" matrix_elementweb_integrations_rest_url: "https://scalar.vector.im/api" diff --git a/roles/matrix/templates/elementweb-config.json b/roles/matrix/templates/elementweb-config.json index c7f136d..0819300 100644 --- a/roles/matrix/templates/elementweb-config.json +++ b/roles/matrix/templates/elementweb-config.json @@ -6,6 +6,7 @@ } }, "disable_custom_urls": {{ matrix_elementweb_disable_custom_urls | to_json }}, + "disable_3pid_login": {{ matrix_elementweb_disable_3pid_login | to_json }}, "disable_guests": {{ matrix_elementweb_disable_guests | to_json }}, "integrations_ui_url": {{ matrix_elementweb_integrations_ui_url | string | to_json }}, "integrations_rest_url": {{ matrix_elementweb_integrations_rest_url | string | to_json }},