We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7557e8 commit c810b1eCopy full SHA for c810b1e
src/Connection.php
@@ -158,7 +158,7 @@ protected function _httpConnection()
158
$certPath = config('database.connections.elasticsearch.ssl_cert') ?? null;
159
$cb = ClientBuilder::create()->setHosts($hosts);
160
if ($username && $pass) {
161
- $cb->setBasicAuthentication($username, 'pass')->build();
+ $cb->setBasicAuthentication($username, $pass)->build();
162
}
163
if ($certPath) {
164
$cb->setSSLVerification($certPath);
0 commit comments