From 5a586260aeab91d53e9316bf3395a34a91cd8cc0 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: Mon, 16 Sep 2019 21:21:22 +0800 Subject: Login flow for registered accounts --- pages/LoginPass.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/LoginPass.qml (limited to 'pages/LoginPass.qml') diff --git a/pages/LoginPass.qml b/pages/LoginPass.qml new file mode 100644 index 0000000..9e5d2f4 --- /dev/null +++ b/pages/LoginPass.qml @@ -0,0 +1,20 @@ +import QtQuick 2.12 +import KelakonUser 0.1 + +PasswordForm { + width: stackView.width + height: stackView.height + backButton.onClicked: stackView.pop() + instructionLabel.text: qsTr("Enter password") + emailAddressLabel.text: User.name + + passTextField.onTextChanged: { + if (!passTextField.text || !createPassButton.enabled) + createPassButton.enabled = !createPassButton.enabled + } + + createPassButton.onClicked: { + User.password = passTextField.text + onClicked: login.logIn(User.name, User.password) + } +} -- cgit v1.2.3