From 56f6b67c908f0feb8d45ba92ae3abe5c7d0ab89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 18 Sep 2019 21:15:29 +0800 Subject: userNew is replaced by ticketNew because we expect RT to automatically create a non-staff account for the submitter. https://rt-wiki.bestpractical.com/wiki/ManualAdministration#USERS --- Login.qml | 3 +-- controller.cxx | 5 ++--- pages/CreateProfile.qml | 4 ++-- qrtclient | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Login.qml b/Login.qml index 14dc174..67e4942 100644 --- a/Login.qml +++ b/Login.qml @@ -3,8 +3,7 @@ import "larva/features" OnboardingForm { signal logIn(string name, string password) - signal userNew(string name, string password, string emailAddress - , string realName) + signal ticketNew(string queue, string requestor) signal ticketSearch(string name) function pushProfile() { stackView.push("qrc:/pages/Profile.qml") diff --git a/controller.cxx b/controller.cxx index 335834b..d77abfa 100644 --- a/controller.cxx +++ b/controller.cxx @@ -19,9 +19,8 @@ Controller::Controller(QObject* parent) : QObject{parent} , client, SLOT(logIn(QString, QString))); connect(client, SIGNAL(logged(rtclient_user*)) , loginView, SLOT(pushProfile())); - connect(loginView, SIGNAL(userNew(QString, QString, QString, QString)) - , client, SLOT(userNew(QString, QString, QString - , QString))); + connect(loginView, SIGNAL(ticketNew(QString, QString)) + , client, SLOT(ticketNew(QString, QString))); connect(loginView, SIGNAL(ticketSearch(QString)) , client, SLOT(ticketSearch(QString))); diff --git a/pages/CreateProfile.qml b/pages/CreateProfile.qml index 93cdb0c..7d499e2 100644 --- a/pages/CreateProfile.qml +++ b/pages/CreateProfile.qml @@ -12,7 +12,7 @@ CreateProfileForm { startUsingKelakon.onClicked: { User.name = userNameLabel.text User.realName = enterFullName.text - login.userNew(User.name, User.password, User.emailAddress - , User.realName) + login.ticketNew("Kelakon", User.realName + " <" + User.emailAddress + + ">") } } diff --git a/qrtclient b/qrtclient index c134fbf..0b05904 160000 --- a/qrtclient +++ b/qrtclient @@ -1 +1 @@ -Subproject commit c134fbf2247625eebaf1b61471c2fa9b08fffe80 +Subproject commit 0b05904d38acb050ead71ad256d59f70b9c9fe87 -- cgit v1.2.3