diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-22 13:14:38 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-22 16:15:00 -0700 |
commit | 680022aea581a020c34eedfca00ab4f414c43d0e (patch) | |
tree | b51c86e38532ab14323e885eac7dd7f2732d6955 /mobile-widgets/qml/CloudCredentials.qml | |
parent | a03aa448217deec84bb54dd26a6c974fa391675f (diff) | |
download | subsurface-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.qml | 2 |
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 { |