@@ 134-136 (lines=3) @@ | ||
131 | $cluster = Cassandra::cluster(); |
|
132 | ||
133 | // Check if the credentials are not already set in the options |
|
134 | if (!isset($options['username']) && !empty($config['username'])) { |
|
135 | $options['username'] = $config['username']; |
|
136 | } |
|
137 | if (!isset($options['password']) && !empty($config['password'])) { |
|
138 | $options['password'] = $config['password']; |
|
139 | } |
|
@@ 137-139 (lines=3) @@ | ||
134 | if (!isset($options['username']) && !empty($config['username'])) { |
|
135 | $options['username'] = $config['username']; |
|
136 | } |
|
137 | if (!isset($options['password']) && !empty($config['password'])) { |
|
138 | $options['password'] = $config['password']; |
|
139 | } |
|
140 | ||
141 | // Authentication |
|
142 | if (isset($options['username']) && isset($options['password'])) { |