summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-18 21:15:29 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-18 21:15:29 +0800
commit56f6b67c908f0feb8d45ba92ae3abe5c7d0ab89c (patch)
tree9774e48271a264185fbda844216f632fba99d2d0
parentab313930e5ecc2bdfd01f427eab25b9d5db5ac1e (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.qml3
-rw-r--r--controller.cxx5
-rw-r--r--pages/CreateProfile.qml4
m---------qrtclient0
4 files changed, 5 insertions, 7 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
-Subproject c134fbf2247625eebaf1b61471c2fa9b08fffe8
+Subproject 0b05904d38acb050ead71ad256d59f70b9c9fe8