Skip to content

Commit

Permalink
Set wgVirtualDomainsMapping for LoginNotify (#5752)
Browse files Browse the repository at this point in the history
Also set wgLoginNotifyUseCentralId if using CentralAuth
  • Loading branch information
paladox authored Nov 21, 2024
1 parent 75d8c04 commit 86248ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
}

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

$wgLoginNotifyUseCentralId = true;
}

if ( $wi->isExtensionActive( 'chameleon' ) ) {
Expand Down
9 changes: 9 additions & 0 deletions LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,9 @@
'virtual-incidentreporting' => [
'db' => $wi->getIncidentsDatabase(),
],
'virtual-LoginNotify' => [
'db' => $wi->getGlobalDatabase(),
],
'virtual-matomoanalytics' => [
'db' => $wi->getGlobalDatabase(),
],
Expand All @@ -1219,11 +1222,17 @@
],
],
'ldapwikiwiki' => [
'virtual-LoginNotify' => [
'db' => 'ldapwikiwiki',
],
'virtual-oathauth' => [
'db' => 'ldapwikiwiki',
],
],
'srewiki' => [
'virtual-LoginNotify' => [
'db' => 'ldapwikiwiki',
],
'virtual-oathauth' => [
'db' => 'ldapwikiwiki',
],
Expand Down

0 comments on commit 86248ab

Please sign in to comment.