diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:22:36 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-22 20:22:36 +0200 |
commit | 395f3758e810fed6cd276a356fd5f0e955c5477e (patch) | |
tree | 54beaa54138e3bcd62de7eee4ca928fcfcb85a98 /lib/settings.cpp | |
parent | 776feaa5eeaffe78773aec9a4431fef147fa95c4 (diff) | |
download | libquotient-395f3758e810fed6cd276a356fd5f0e955c5477e.tar.gz libquotient-395f3758e810fed6cd276a356fd5f0e955c5477e.zip |
Settings: no more setToken() and accessToken(); deprecate clearAccessToken()
Access tokens should be stored with Qt Keychain that's about to come;
and these methods were deprecated since before 0.5.
Diffstat (limited to 'lib/settings.cpp')
-rw-r--r-- | lib/settings.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp index 1d36db27..ed9082b0 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -126,19 +126,6 @@ void AccountSettings::setHomeserver(const QUrl& url) QString AccountSettings::userId() const { return group().section('/', -1); } -QString AccountSettings::accessToken() const -{ - return value(AccessTokenKey).toString(); -} - -void AccountSettings::setAccessToken(const QString& accessToken) -{ - qCWarning(MAIN) << "Saving access_token to QSettings is insecure." - " Developers, do it manually or contribute to share " - "QtKeychain logic to libQuotient."; - setValue(AccessTokenKey, accessToken); -} - void AccountSettings::clearAccessToken() { legacySettings.remove(AccessTokenKey); |