[Pkg-owncloud-commits] [owncloud-client] 41/159: HttpCreds: Delete password from old location. #2186

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 588129d852898d7695c96b0d701f009a30e04d9e
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Mar 26 11:15:24 2015 +0100

    HttpCreds: Delete password from old location. #2186
---
 src/libsync/creds/httpcredentials.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/libsync/creds/httpcredentials.cpp b/src/libsync/creds/httpcredentials.cpp
index 2d5569d..0dd0e74 100644
--- a/src/libsync/creds/httpcredentials.cpp
+++ b/src/libsync/creds/httpcredentials.cpp
@@ -336,6 +336,14 @@ void HttpCredentials::invalidateToken()
     job->setKey(kck);
     job->start();
 
+    // Also ensure the password is deleted from the deprecated place
+    // otherwise we'd possibly read and use it again and again.
+    DeletePasswordJob *job2 = new DeletePasswordJob(Theme::instance()->appName());
+    // no job2->setSettings() call here, to make it use the deprecated location.
+    job2->setInsecureFallback(true);
+    job2->setKey(kck);
+    job2->start();
+
     _account->clearCookieJar();
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list