]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make Google Drive storage id unique, before it was anonymousanonymous
authorMichael Gapczynski <mtgap@owncloud.com>
Thu, 10 Jan 2013 03:17:39 +0000 (22:17 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Thu, 10 Jan 2013 03:17:39 +0000 (22:17 -0500)
apps/files_external/lib/google.php

index bbb315c4910a9cf7023981a81c643f999dca6449..4c485773e7b053fc4f040809f7801f89f2fab6e2 100644 (file)
@@ -41,7 +41,7 @@ class Google extends \OC\Files\Storage\Common {
                ) {
                        $consumer_key = isset($params['consumer_key']) ? $params['consumer_key'] : 'anonymous';
                        $consumer_secret = isset($params['consumer_secret']) ? $params['consumer_secret'] : 'anonymous';
-                       $this->id = 'google::' . $consumer_key . $consumer_secret;
+                       $this->id = 'google::' . $params['token'];
                        $this->consumer = new \OAuthConsumer($consumer_key, $consumer_secret);
                        $this->oauth_token = new \OAuthToken($params['token'], $params['token_secret']);
                        $this->sig_method = new \OAuthSignatureMethod_HMAC_SHA1();