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/LoginName.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/LoginName.qml (limited to 'pages/LoginName.qml') diff --git a/pages/LoginName.qml b/pages/LoginName.qml new file mode 100644 index 0000000..72b069b --- /dev/null +++ b/pages/LoginName.qml @@ -0,0 +1,19 @@ +import QtQuick 2.12 +import KelakonUser 0.1 + +EmailForm { + width: stackView.width + height: stackView.height + backButton.onClicked: stackView.pop() + instructionLabel.text: qsTr("Enter e-mail") + + emailTextField.onTextChanged: { + if (!emailTextField.text || !loginButton.enabled) + loginButton.enabled = !loginButton.enabled + } + + loginButton.onClicked: { + User.name = emailTextField.text + stackView.push("qrc:/pages/LoginPass.qml") + } +} -- cgit v1.2.3