diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-17 19:52:50 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-17 19:52:50 +0800 |
commit | 3ac6ebbc5243f2b0ddddcfc58ba81eb686fb5aa2 (patch) | |
tree | 3ec457122cc34f4ecfcfad2a816deeba4aaa4dc4 /pages/ConfirmPassword.qml | |
parent | acf879ebafaa870fc5ef942effa660a08041557e (diff) |
Sign up functionality
Diffstat (limited to 'pages/ConfirmPassword.qml')
-rw-r--r-- | pages/ConfirmPassword.qml | 7 |
1 files changed, 4 insertions, 3 deletions
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") } } |