aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/registration.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-21 22:59:17 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-21 22:59:17 +0900
commit22b14860e6b2bda990a05167ae61d8d7f24a2427 (patch)
tree70e0b47a8460af0ee2b8ab9007977178ab196dd6 /lib/csapi/registration.cpp
parentd3f1f39dafc87ce5b4654ac2a9b21df53dad1a4b (diff)
downloadlibquotient-22b14860e6b2bda990a05167ae61d8d7f24a2427.tar.gz
libquotient-22b14860e6b2bda990a05167ae61d8d7f24a2427.zip
csapi: add definitions/auth_data.* and optimise out trivial files with the latest GTAD
Diffstat (limited to 'lib/csapi/registration.cpp')
-rw-r--r--lib/csapi/registration.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/registration.cpp b/lib/csapi/registration.cpp
index 4991829c..c0a35917 100644
--- a/lib/csapi/registration.cpp
+++ b/lib/csapi/registration.cpp
@@ -30,7 +30,7 @@ BaseJob::Query queryToRegister(const QString& kind)
static const auto RegisterJobName = QStringLiteral("RegisterJob");
-RegisterJob::RegisterJob(const QString& kind, const QJsonObject& auth, bool bindEmail, const QString& username, const QString& password, const QString& deviceId, const QString& initialDeviceDisplayName)
+RegisterJob::RegisterJob(const QString& kind, const Omittable<AuthenticationData>& auth, bool bindEmail, const QString& username, const QString& password, const QString& deviceId, const QString& initialDeviceDisplayName)
: BaseJob(HttpVerb::Post, RegisterJobName,
basePath % "/register",
queryToRegister(kind),
@@ -95,7 +95,7 @@ RequestTokenToRegisterJob::RequestTokenToRegisterJob(const QString& clientSecret
static const auto ChangePasswordJobName = QStringLiteral("ChangePasswordJob");
-ChangePasswordJob::ChangePasswordJob(const QString& newPassword, const QJsonObject& auth)
+ChangePasswordJob::ChangePasswordJob(const QString& newPassword, const Omittable<AuthenticationData>& auth)
: BaseJob(HttpVerb::Post, ChangePasswordJobName,
basePath % "/account/password")
{
@@ -121,7 +121,7 @@ RequestTokenToResetPasswordJob::RequestTokenToResetPasswordJob()
static const auto DeactivateAccountJobName = QStringLiteral("DeactivateAccountJob");
-DeactivateAccountJob::DeactivateAccountJob(const QJsonObject& auth)
+DeactivateAccountJob::DeactivateAccountJob(const Omittable<AuthenticationData>& auth)
: BaseJob(HttpVerb::Post, DeactivateAccountJobName,
basePath % "/account/deactivate")
{