Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 which we'll
redirect all blocked users who are logging in.
ionparticle committed Aug 2, 2024
1 parent c3860a6 commit bc8161f
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
@@ -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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bc8161f

Please sign in to comment.