From 53185c5a21d6cc18cc85dbf73f25e732e13c75c3 Mon Sep 17 00:00:00 2001 From: John Hsu Date: Fri, 2 Aug 2024 12:52:38 -0700 Subject: [PATCH] ADD redirect for blocked users The AUTO_BLOCKED_USER_REDIRECT env var sets the page to redirect all blocked users who are logging in. --- LocalSettings.php | 1 + docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/LocalSettings.php b/LocalSettings.php index 1ca91f2..3c6f353 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -806,6 +806,7 @@ function loadenv($envName, $default = "") { if ( getenv( 'AUTO_CREATED_USER_REDIRECT' ) ) { wfLoadExtension( 'AutoCreatedUserRedirector' ); $wgAutoCreatedUserRedirect = getenv( 'AUTO_CREATED_USER_REDIRECT' ); + $wgAutoBlockedUserRedirect = getenv( 'AUTO_BLOCKED_USER_REDIRECT' ); } # Give Bureaucrats delete permission diff --git a/docker-compose.yml b/docker-compose.yml index 960d0de..bddb078 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -107,6 +107,7 @@ services: # but the Parsoid domain is not configurable. hence disable the check. PARSOID_SKIP_DOAMIN_CHECK: true AUTO_CREATED_USER_REDIRECT: UBC_Wiki:Welcome + AUTO_BLOCKED_USER_REDIRECT: UBC_Wiki:Blocked # use Redis for cache #MEDIAWIKI_MAIN_CACHE: redis #MEDIAWIKI_REDIS_HOST: redis