summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-03 08:44:57 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-03 08:44:57 +0200
commit4a08127caceff75d9e0ad4b20e6195c30a809447 (patch)
tree8170d7c7491df8947fb9c3135b32e00c9ca0a59f /framework
parent53bcc57dcfa0c053a79f4240ffb0f20f06fd433b (diff)
downloadkube-4a08127caceff75d9e0ad4b20e6195c30a809447.tar.gz
kube-4a08127caceff75d9e0ad4b20e6195c30a809447.zip
Keep login with an empty password from succeeding
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/LoginAccount.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/qml/LoginAccount.qml b/framework/qml/LoginAccount.qml
index f1289dc4..65f162a8 100644
--- a/framework/qml/LoginAccount.qml
+++ b/framework/qml/LoginAccount.qml
@@ -97,7 +97,11 @@ Item {
97 } 97 }
98 } 98 }
99 } 99 }
100 Keys.onReturnPressed: login() 100 Keys.onReturnPressed: {
101 if (loader.item.valid) {
102 login()
103 }
104 }
101 105
102 Item { 106 Item {
103 id: footer 107 id: footer
@@ -112,6 +116,7 @@ Item {
112 anchors.right: parent.right 116 anchors.right: parent.right
113 text: qsTr("Login") 117 text: qsTr("Login")
114 onClicked: login() 118 onClicked: login()
119 enabled: loader.item.valid
115 } 120 }
116 } 121 }
117 } 122 }