From f0f9f485f57887b5f0d47d8b342d8ab80c11e022 Mon Sep 17 00:00:00 2001 From: David Philip Date: Sun, 5 Jun 2022 19:02:03 +0200 Subject: [PATCH] Connection typo fix (v7.x) --- src/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 3494410..0efb2c8 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -158,7 +158,7 @@ protected function _httpConnection() $certPath = config('database.connections.elasticsearch.ssl_cert') ?? null; $cb = ClientBuilder::create()->setHosts($hosts); if ($username && $pass) { - $cb->setBasicAuthentication($username, 'pass')->build(); + $cb->setBasicAuthentication($username, $pass)->build(); } if ($certPath) { $cb->setSSLVerification($certPath);