summaryrefslogtreecommitdiff
path: root/pages/ConfirmPassword.qml
blob: 37e2ce047bc66f744ecbd6575532a942d6b948c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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")
		onTextChanged:
			if (!passTextField.text || !createPassButton.enabled)
				createPassButton.enabled = !createPassButton.enabled
	}

	createPassButton {
		text: qsTr("Confirm password")
		onClicked: login.logIn(User.name, User.password)
	}
}