Fix Swift legacy auth mechanism fallback

This commit is contained in:
Robin McCorkell 2015-09-03 09:50:45 +01:00
parent e33d7b34fa
commit 442f5269ef

View file

@ -49,7 +49,7 @@ class Swift extends Backend {
->setDependencyCheck('\OC\Files\Storage\Swift::checkDependencies')
->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK)
->setLegacyAuthMechanismCallback(function(array $params) use ($openstackAuth, $rackspaceAuth) {
if (isset($params['key'])) {
if (isset($params['options']['key']) && $params['options']['key']) {
return $rackspaceAuth;
}
return $openstackAuth;