From 3ac6ebbc5243f2b0ddddcfc58ba81eb686fb5aa2 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: Tue, 17 Sep 2019 19:52:50 +0800 Subject: Sign up functionality --- pages/ConfirmPassword.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pages/ConfirmPassword.qml') diff --git a/pages/ConfirmPassword.qml b/pages/ConfirmPassword.qml index 37e2ce0..6d37be7 100644 --- a/pages/ConfirmPassword.qml +++ b/pages/ConfirmPassword.qml @@ -12,12 +12,13 @@ PasswordForm { passTextField { placeholderText: qsTr("Re-enter Password") onTextChanged: - if (!passTextField.text || !createPassButton.enabled) - createPassButton.enabled = !createPassButton.enabled + if (passTextField.text == User.password) + createPassButton.enabled = true } createPassButton { + enabled: false text: qsTr("Confirm password") - onClicked: login.logIn(User.name, User.password) + onClicked: stackView.push("qrc:/pages/CreateProfile.qml") } } -- cgit v1.2.3