Skip to content
Snippets Groups Projects
Unverified Commit 812ea354 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by Robin Appelman
Browse files

User proper username + pass

parent fe05ecfd
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ class SwiftFactory {
$this->params['autocreate'] = false;
}
if (isset($this->params['user']) && is_array($this->params['user'])) {
$userName = $this->params['user']['id'];
$userName = $this->params['user']['name'];
} else {
if (!isset($this->params['username']) && isset($this->params['user'])) {
$this->params['username'] = $this->params['user'];
......@@ -102,7 +102,7 @@ class SwiftFactory {
'handler' => HandlerStack::create()
]);
if (isset($this->params['user']) && isset($this->params['user']['id'])) {
if (isset($this->params['user']) && isset($this->params['user']['name'])) {
return $this->auth(IdentityV3Service::factory($httpClient), $cacheKey);
} else {
return $this->auth(IdentityV2Service::factory($httpClient), $cacheKey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment