summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-18 09:23:43 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-22 10:25:20 (GMT)
commit106a3b296e37178ed6ee227120771116732ef6eb (patch)
treedec4ace2eaebdb462d138f3ac658391cc36b58d3 /Swiften/Client/ClientOptions.h
parent206a1e4dc8a7362196b5e34193556a65895e4517 (diff)
downloadswift-106a3b296e37178ed6ee227120771116732ef6eb.zip
swift-106a3b296e37178ed6ee227120771116732ef6eb.tar.bz2
Eagle mode.
Disables password persistence.
Diffstat (limited to 'Swiften/Client/ClientOptions.h')
-rw-r--r--Swiften/Client/ClientOptions.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Swiften/Client/ClientOptions.h b/Swiften/Client/ClientOptions.h
index 1155b46..cc80dc2 100644
--- a/Swiften/Client/ClientOptions.h
+++ b/Swiften/Client/ClientOptions.h
@@ -12,7 +12,7 @@ struct ClientOptions {
UseTLSWhenAvailable
};
- ClientOptions() : useStreamCompression(true), useTLS(UseTLSWhenAvailable), useStreamResumption(false) {
+ ClientOptions() : useStreamCompression(true), useTLS(UseTLSWhenAvailable), useStreamResumption(false), forgetPassword(false) {
}
/**
@@ -35,5 +35,15 @@ struct ClientOptions {
* Default: false
*/
bool useStreamResumption;
+
+ /**
+ * Forget the password once it's used.
+ * This makes the Client useless after the first login attempt.
+ *
+ * FIXME: This is a temporary workaround.
+ *
+ * Default: false
+ */
+ bool forgetPassword;
};