summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-12 22:03:41 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-25 00:22:10 +0100
commita50ef618761ae3588d00e55c39451cba75672e7f (patch)
treeba09c0b3b88716c9db95f74dfe6326c414fdcc69 /apps/files_external/ajax
parentced04f9ad2a55439d74681ce1a582a5c6ed2d5ab (diff)
downloadnextcloud-server-a50ef618761ae3588d00e55c39451cba75672e7f.tar.gz
nextcloud-server-a50ef618761ae3588d00e55c39451cba75672e7f.zip
Migrate Dropbox external storage to new API
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r--apps/files_external/ajax/oauth1.php (renamed from apps/files_external/ajax/dropbox.php)7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_external/ajax/dropbox.php b/apps/files_external/ajax/oauth1.php
index 55dc417b73a..ca339aeec58 100644
--- a/apps/files_external/ajax/dropbox.php
+++ b/apps/files_external/ajax/oauth1.php
@@ -30,6 +30,7 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$l = \OC::$server->getL10N('files_external');
+// FIXME: currently hard-coded to Dropbox OAuth
if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
$oauth = new Dropbox_OAuth_Curl((string)$_POST['app_key'], (string)$_POST['app_secret']);
if (isset($_POST['step'])) {
@@ -47,7 +48,7 @@ if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
'request_token_secret' => $token['token_secret'])));
} catch (Exception $exception) {
OCP\JSON::error(array('data' => array('message' =>
- $l->t('Fetching request tokens failed. Verify that your Dropbox app key and secret are correct.'))
+ $l->t('Fetching request tokens failed. Verify that your app key and secret are correct.'))
));
}
break;
@@ -60,7 +61,7 @@ if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
'access_token_secret' => $token['token_secret']));
} catch (Exception $exception) {
OCP\JSON::error(array('data' => array('message' =>
- $l->t('Fetching access tokens failed. Verify that your Dropbox app key and secret are correct.'))
+ $l->t('Fetching access tokens failed. Verify that your app key and secret are correct.'))
));
}
}
@@ -68,5 +69,5 @@ if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
}
}
} else {
- OCP\JSON::error(array('data' => array('message' => $l->t('Please provide a valid Dropbox app key and secret.'))));
+ OCP\JSON::error(array('data' => array('message' => $l->t('Please provide a valid app key and secret.'))));
}