From 12f2bf44dcf9c405260d37b84b3b67c70edb8cf8 Mon Sep 17 00:00:00 2001 From: Iacopo Date: Tue, 14 Nov 2017 12:17:30 +0100 Subject: [PATCH] fallback authSource to admin --- src/Services/ClientRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/ClientRegistry.php b/src/Services/ClientRegistry.php index 9bc82cb..60912ae 100644 --- a/src/Services/ClientRegistry.php +++ b/src/Services/ClientRegistry.php @@ -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() );