aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/csapi/registration.cpp2
-rw-r--r--lib/csapi/registration.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/registration.cpp b/lib/csapi/registration.cpp
index b80abc84..33f61265 100644
--- a/lib/csapi/registration.cpp
+++ b/lib/csapi/registration.cpp
@@ -58,7 +58,7 @@ RequestTokenToRegisterMSISDNJob::RequestTokenToRegisterMSISDNJob(
}
ChangePasswordJob::ChangePasswordJob(const QString& newPassword,
- Omittable<bool> logoutDevices,
+ bool logoutDevices,
const Omittable<AuthenticationData>& auth)
: BaseJob(HttpVerb::Post, QStringLiteral("ChangePasswordJob"),
QStringLiteral("/_matrix/client/r0") % "/account/password")
diff --git a/lib/csapi/registration.h b/lib/csapi/registration.h
index 62bc35f1..6864fd47 100644
--- a/lib/csapi/registration.h
+++ b/lib/csapi/registration.h
@@ -222,7 +222,7 @@ public:
*
* \param logoutDevices
* Whether the user's other access tokens, and their associated devices,
- * should be revoked if the request succeeds. Defaults to true.
+ * should be revoked if the request succeeds.
*
* When ``false``, the server can still take advantage of `the soft logout
* method <#soft-logout>`_ for the user's remaining devices.
@@ -232,7 +232,7 @@ public:
* authentication API.
*/
explicit ChangePasswordJob(const QString& newPassword,
- Omittable<bool> logoutDevices = none,
+ bool logoutDevices = true,
const Omittable<AuthenticationData>& auth = none);
};