From 680022aea581a020c34eedfca00ab4f414c43d0e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Jul 2017 13:14:38 -0700 Subject: QML UI: don't disclose the current password This isn't perfect, but at least it doesn't disclose a password that isn't currently being edited. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/CloudCredentials.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mobile-widgets/qml/CloudCredentials.qml') diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index 71ea796b4..869b24396 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -95,6 +95,8 @@ Item { id: showPassword Layout.preferredWidth: col2Width onCheckedChanged: { + if (checked) + password.text = "" // don't show a hidden password password.echoMode = checked ? TextInput.Normal : TextInput.Password } indicator: Rectangle { -- cgit v1.2.3-70-g09d2