diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-01-27 19:55:17 +0400 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-01-27 19:57:10 +0400 |
commit | 397763ba6192a643b8c344ba3983c4c5d0930a51 (patch) | |
tree | e36caffac68acfe0d1b5ffa925fa45923869bf0e /src/creds | |
parent | 72ae44b8b1cdd66a882d90dab26664229ba8b6fc (diff) |
Fix HttpCredentials::invalidateToken to invalidate the password in the config file
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/httpcredentials.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/creds/httpcredentials.cpp b/src/creds/httpcredentials.cpp index af4e1c7a9..4f804dde0 100644 --- a/src/creds/httpcredentials.cpp +++ b/src/creds/httpcredentials.cpp @@ -265,6 +265,9 @@ void HttpCredentials::invalidateToken(Account *account) { _password = QString(); DeletePasswordJob *job = new DeletePasswordJob(Theme::instance()->appName()); + job->setSettings(account->settingsWithGroup(Theme::instance()->appName())); + job->setInsecureFallback(true); + connect(job, SIGNAL(destroyed(QObject*)), job->settings(), SLOT(deleteLater())); job->setKey(keychainKey(account->url().toString(), _user)); job->start(); _ready = false; |