Skip to content

Commit

Permalink
fallback authSource to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
siuvdlec authored Nov 14, 2017
1 parent 623c6b6 commit 12f2bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/ClientRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getClient(string $name, string $databaseName = null): Client
$options = array_merge(
[
'database' => $databaseName,
'authSource' => $conf->getAuthSource() ?? $databaseName
'authSource' => $conf->getAuthSource() ?? $databaseName ?? 'admin'
],
$conf->getOptions()
);
Expand Down

0 comments on commit 12f2bf4

Please sign in to comment.