Commit 827175b2 authored by Tom Needham's avatar Tom Needham

Callback url should include settings sectionid

parent 4888a0cd
......@@ -59,7 +59,7 @@ $(document).ready(function() {
var configured = $(this).parent().find('[data-parameter="configured"]');
var token = $(this).parent().find('[data-parameter="token"]');
var token_secret = $(this).parent().find('[data-parameter="token_secret"]');
$.post(OC.filePath('files_external', 'ajax', 'oauth1.php'), { step: 1, app_key: app_key, app_secret: app_secret, callback: location.protocol + '//' + location.host + location.pathname }, function(result) {
$.post(OC.filePath('files_external', 'ajax', 'oauth1.php'), { step: 1, app_key: app_key, app_secret: app_secret, callback: location.protocol + '//' + location.host + location.pathname + '?sectionid=storage' }, function(result) {
if (result && result.status == 'success') {
$(configured).val('false');
$(token).val(result.data.request_token);
......
......@@ -37,7 +37,7 @@ $(document).ready(function() {
step: 2,
client_id: client_id,
client_secret: client_secret,
redirect: location.protocol + '//' + location.host + location.pathname,
redirect: location.protocol + '//' + location.host + location.pathname + '?sectionid=storage',
code: params['code'],
}, function(result) {
if (result && result.status == 'success') {
......@@ -75,7 +75,7 @@ $(document).ready(function() {
step: 1,
client_id: client_id,
client_secret: client_secret,
redirect: location.protocol + '//' + location.host + location.pathname,
redirect: location.protocol + '//' + location.host + location.pathname + '?sectionid=storage',
}, function(result) {
if (result && result.status == 'success') {
$(configured).val('false');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment