Skip to content

Commit

Permalink
ADD redirect for blocked users
Browse files Browse the repository at this point in the history
The AUTO_BLOCKED_USER_REDIRECT env var sets the page to redirect all
blocked users who are logging in.
  • Loading branch information
ionparticle committed Aug 2, 2024
1 parent c3860a6 commit 53185c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53185c5

Please sign in to comment.