diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 11:40:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 11:40:45 +0200 |
commit | a7e7f7fdd2a9d38921476d57f305c9cd4459a556 (patch) | |
tree | d9ad3bdc3e275004a54f508025f0d52227ab18cb /examples/maildirresource/maildirresource.cpp | |
parent | ea2e02ad656640c17d520b5a22c168c3c1faef56 (diff) | |
download | sink-a7e7f7fdd2a9d38921476d57f305c9cd4459a556.tar.gz sink-a7e7f7fdd2a9d38921476d57f305c9cd4459a556.zip |
Avoid storing the password in the configuration
The password (or any other secret), is now cached in the client process
(in-memory only), and delivered to the resource via command.
The resource avoids doing any operations against the source until the
secret is available.
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index b406f63..41f2433 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -215,7 +215,7 @@ public: | |||
215 | MaildirSynchronizer(const Sink::ResourceContext &resourceContext) | 215 | MaildirSynchronizer(const Sink::ResourceContext &resourceContext) |
216 | : Sink::Synchronizer(resourceContext) | 216 | : Sink::Synchronizer(resourceContext) |
217 | { | 217 | { |
218 | 218 | setSecret("dummy"); | |
219 | } | 219 | } |
220 | 220 | ||
221 | static QStringList listRecursive( const QString &root, const KPIM::Maildir &dir ) | 221 | static QStringList listRecursive( const QString &root, const KPIM::Maildir &dir ) |