Skip to content

Commit bc8161f

Browse files
committed
ADD redirect for blocked users
The AUTO_BLOCKED_USER_REDIRECT env var sets the page to which we'll redirect all blocked users who are logging in.
1 parent c3860a6 commit bc8161f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

LocalSettings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ function loadenv($envName, $default = "") {
806806
if ( getenv( 'AUTO_CREATED_USER_REDIRECT' ) ) {
807807
wfLoadExtension( 'AutoCreatedUserRedirector' );
808808
$wgAutoCreatedUserRedirect = getenv( 'AUTO_CREATED_USER_REDIRECT' );
809+
$wgAutoBlockedUserRedirect = getenv( 'AUTO_BLOCKED_USER_REDIRECT' );
809810
}
810811

811812
# Give Bureaucrats delete permission

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ services:
107107
# but the Parsoid domain is not configurable. hence disable the check.
108108
PARSOID_SKIP_DOAMIN_CHECK: true
109109
AUTO_CREATED_USER_REDIRECT: UBC_Wiki:Welcome
110+
AUTO_BLOCKED_USER_REDIRECT: UBC_Wiki:Blocked
110111
# use Redis for cache
111112
#MEDIAWIKI_MAIN_CACHE: redis
112113
#MEDIAWIKI_REDIS_HOST: redis

0 commit comments

Comments
 (0)