diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-18 21:15:29 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-18 21:15:29 +0800 |
commit | 56f6b67c908f0feb8d45ba92ae3abe5c7d0ab89c (patch) | |
tree | 9774e48271a264185fbda844216f632fba99d2d0 | |
parent | ab313930e5ecc2bdfd01f427eab25b9d5db5ac1e (diff) |
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
-rw-r--r-- | Login.qml | 3 | ||||
-rw-r--r-- | controller.cxx | 5 | ||||
-rw-r--r-- | pages/CreateProfile.qml | 4 | ||||
m--------- | qrtclient | 0 |
4 files changed, 5 insertions, 7 deletions
@@ -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 -Subproject c134fbf2247625eebaf1b61471c2fa9b08fffe8 +Subproject 0b05904d38acb050ead71ad256d59f70b9c9fe8 |