summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:32:14 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:32:14 +0800
commitf2b182a34a28dfd40079d563ff47d2e56e4aae1e (patch)
tree519c7e137ce7b5a4dc8621a0143f70eca559ef14 /pages
parent9f284fb7257f4968cfcd0a72b41e2e98ef51c890 (diff)
The user name member is used for login
instead of email address
Diffstat (limited to 'pages')
-rw-r--r--pages/ConfirmPassword.qml4
-rw-r--r--pages/Email.qml2
-rw-r--r--pages/Password.qml2
3 files changed, 4 insertions, 4 deletions
diff --git a/pages/ConfirmPassword.qml b/pages/ConfirmPassword.qml
index 1f2dd2f..51390f9 100644
--- a/pages/ConfirmPassword.qml
+++ b/pages/ConfirmPassword.qml
@@ -7,13 +7,13 @@ PasswordForm {
backButton.onClicked: stackView.pop()
userEmail.y: 292
instructionLabel.text: qsTr("Re-Enter password")
- emailAddressLabel.text: User.emailAddress
+ emailAddressLabel.text: User.name
passTextField.placeholderText: qsTr("Re-enter Password")
createPassButton {
text: qsTr("Confirm password")
onClicked: {
- appWindow.logIn(User.emailAddress, User.password)
+ appWindow.logIn(User.name, User.password)
stackView.push("qrc:/pages/CreateProfile.qml")
}
}
diff --git a/pages/Email.qml b/pages/Email.qml
index 3f7a237..e489753 100644
--- a/pages/Email.qml
+++ b/pages/Email.qml
@@ -7,7 +7,7 @@ EmailForm {
backButton.onClicked: stackView.pop()
loginButton.onClicked: {
- User.emailAddress = emailTextField.text
+ User.name = emailTextField.text
stackView.push("qrc:/pages/Password.qml")
}
}
diff --git a/pages/Password.qml b/pages/Password.qml
index 241f299..2464af0 100644
--- a/pages/Password.qml
+++ b/pages/Password.qml
@@ -5,7 +5,7 @@ PasswordForm {
width: stackView.width
height: stackView.height
backButton.onClicked: stackView.pop()
- emailAddressLabel.text: User.emailAddress
+ emailAddressLabel.text: User.name
createPassButton.onClicked: {
User.password = passTextField.text