@@ 124-126 (lines=3) @@ | ||
121 | $cluster = Cassandra::cluster(); |
|
122 | ||
123 | // Check if the credentials are not already set in the options |
|
124 | if (!isset($options['username']) && !empty($config['username'])) { |
|
125 | $options['username'] = $config['username']; |
|
126 | } |
|
127 | if (!isset($options['password']) && !empty($config['password'])) { |
|
128 | $options['password'] = $config['password']; |
|
129 | } |
|
@@ 127-129 (lines=3) @@ | ||
124 | if (!isset($options['username']) && !empty($config['username'])) { |
|
125 | $options['username'] = $config['username']; |
|
126 | } |
|
127 | if (!isset($options['password']) && !empty($config['password'])) { |
|
128 | $options['password'] = $config['password']; |
|
129 | } |
|
130 | ||
131 | // Authentication |
|
132 | if (isset($options['username']) && isset($options['password'])) { |