mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 08:46:02 -04:00
Do not allow a deactivated user to login via SSO. (#7240)
This commit is contained in:
parent
967f99b9f8
commit
b85d7652ff
8 changed files with 110 additions and 10 deletions
|
@ -12,6 +12,7 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import os
|
||||
from typing import Any, Dict
|
||||
|
||||
import pkg_resources
|
||||
|
@ -36,6 +37,12 @@ class SSOConfig(Config):
|
|||
template_dir = pkg_resources.resource_filename("synapse", "res/templates",)
|
||||
|
||||
self.sso_redirect_confirm_template_dir = template_dir
|
||||
self.sso_account_deactivated_template = self.read_file(
|
||||
os.path.join(
|
||||
self.sso_redirect_confirm_template_dir, "sso_account_deactivated.html"
|
||||
),
|
||||
"sso_account_deactivated_template",
|
||||
)
|
||||
|
||||
self.sso_client_whitelist = sso_config.get("client_whitelist") or []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue