summaryrefslogtreecommitdiff
path: root/Password.qml
blob: 6792c1e19806a17973641daf0b1d25bf53d0f4e9 (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
import "pages"

PasswordForm {
	backButton {
		icon.source: "larva/components/icons/arrow-back-24px.svg"
		onClicked: pageView.pop()
	}

	passImage.source: "larva/components/icons/lock-24px.svg"
	emailAddressLabel.text: User.name

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

	createPassButton.onClicked: {
		User.password = passTextField.text
		pageView.push("ConfirmPassword.qml")
	}
}