Merge pull request #6489 from jbroadus/fix-gpodder-logout

Reset gpodder session cookies on logout.
This commit is contained in:
John Maguire 2019-12-30 23:45:12 +00:00 committed by GitHub
commit 9f99cab314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <QCoreApplication>
#include <QHostInfo>
#include <QNetworkAccessManager>
#include <QNetworkCookieJar>
#include <QSettings>
#include <QTimer>
@ -143,6 +144,10 @@ void GPodderSync::Logout() {
s.remove("gpodder_last_get");
api_.reset();
// Remove session cookies. QNetworkAccessManager takes ownership of the new
// object and frees the previous.
network_->setCookieJar(new QNetworkCookieJar());
}
void GPodderSync::GetUpdatesNow() {