summaryrefslogtreecommitdiff
path: root/pages/ConfirmPassword.qml
blob: 92543ce4d25d5448d20d57c2fcad79394de6b27c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick 2.12
import KelakonUser 0.1

PasswordForm {
	width: stackView.width
	height: stackView.height
	backButton.onClicked: stackView.pop()
	userEmail.y: 292
	instructionLabel.text: qsTr("Re-Enter password")
	emailAddressLabel.text: User.name
	passTextField.placeholderText: qsTr("Re-enter Password")

	passTextField.onTextChanged: {
		if (!passTextField.text || !createPassButton.enabled)
			createPassButton.enabled = !createPassButton.enabled
	}

	createPassButton {
		text: qsTr("Confirm password")
		onClicked: {
			login.logIn(User.name, User.password)
			stackView.push("qrc:/pages/CreateProfile.qml")
		}
	}
}