]> source.dussan.org Git - nextcloud-server.git/commitdiff
bearer token should be the whole thing, not the http basic pass
authorMichiel de Jong <michiel@unhosted.org>
Wed, 9 May 2012 13:24:04 +0000 (15:24 +0200)
committerMichiel de Jong <michiel@unhosted.org>
Wed, 9 May 2012 13:28:30 +0000 (15:28 +0200)
apps/remoteStorage/lib_remoteStorage.php

index 3e366ad29eaa97f1e34194ad9f9406e7ef74e373..42cd9c90f649a3e57706fd881bf7e49996fb356e 100755 (executable)
@@ -19,7 +19,7 @@ class OC_remoteStorage {
                $result=$query->execute(array($user, $appUrl, $categories));
                $ret = array();
                if($row=$result->fetchRow()) {
-      return $row['token'];
+                 return base64_encode('remoteStorage:'.$row['token']);
     } else {
       return false;
     }