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

LoginPasswordForm {
	objectName: "login"
	function pushHome() {
		pageView.push("Home.qml")
	}

	emailTextLabel.text: User.name
	passwordTextField.onTextChanged:
		if (!passwordTextField.text || !continueButton.enabled)
			continueButton.enabled = !continueButton.enabled

	continueButton.onClicked: {
			User.password = passwordTextField.text
			window.logIn(User.name, User.password)
		}
}