diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-06 14:11:49 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-06 14:11:49 +0100 |
commit | 21fd088d207ee2c2724c5b250875a843b618497d (patch) | |
tree | 1877146f976f5130a4c7b39ae42dbdd9f96620ed /lib/csapi | |
parent | 91cb9913f94c105b26eb4cfb99562eb86ba0f16a (diff) | |
download | libquotient-21fd088d207ee2c2724c5b250875a843b618497d.tar.gz libquotient-21fd088d207ee2c2724c5b250875a843b618497d.zip |
ChangePasswordJob: logoutDevices doesn't need Omittable
This is generated by GTAD 0.7.1 (to be released), based on the changed
registration.yaml (to be committed and pulled).
Diffstat (limited to 'lib/csapi')
-rw-r--r-- | lib/csapi/registration.cpp | 2 | ||||
-rw-r--r-- | lib/csapi/registration.h | 4 |
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); }; |