summaryrefslogtreecommitdiff
path: root/Password.qml
blob: 083c807604f0fe564c10e8ceb61faa374781b90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.12
import KelakonUser 0.1
import "larva/features"

PasswordForm {
	backButton.onClicked: pageView.pop()
	emailAddressLabel.text: User.emailAddress

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

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