Skip to content

Commit

Permalink
User proper username + pass
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Feb 21, 2018
1 parent 39b2e15 commit 97919c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/ObjectStore/SwiftFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function getClient() {
$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'];
Expand All @@ -102,7 +102,7 @@ private function getClient() {
'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);
Expand Down

0 comments on commit 97919c8

Please sign in to comment.