aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/CloudCredentials.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-22 13:14:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-22 16:15:00 -0700
commit680022aea581a020c34eedfca00ab4f414c43d0e (patch)
treeb51c86e38532ab14323e885eac7dd7f2732d6955 /mobile-widgets/qml/CloudCredentials.qml
parenta03aa448217deec84bb54dd26a6c974fa391675f (diff)
downloadsubsurface-680022aea581a020c34eedfca00ab4f414c43d0e.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml2
1 files changed, 2 insertions, 0 deletions
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 {