Skip to content

Commit

Permalink
CentralAuth: set loginOnly to true (#5330)
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Oct 14, 2023
1 parent 6de4902 commit 168a011
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

// Only allow users with global accounts to login
$wgCentralAuthStrict = true;

if ( isset( $wgAuthManagerAutoConfig['primaryauth'][\MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class] ) ) {
$wgAuthManagerAutoConfig['primaryauth'][\MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class]['args'][0]['loginOnly'] = true;
}

$wgPasswordConfig['null'] = [ 'class' => InvalidPassword::class ];
}

if ( $wi->isExtensionActive( 'chameleon' ) ) {
Expand Down

0 comments on commit 168a011

Please sign in to comment.