From 82da51d5a113a039b54e6a061bf2aa72992fdcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 9 Sep 2020 21:06:22 +0200 Subject: [PATCH] authPrompt: Hide password when insensitive The purpose of password peeking is to spot and correct errors; the latter isn't possible when the entry is non-editable, so we can hide the password again while authentication is ongoing. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3138 --- js/gdm/authPrompt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a6ea6c8dd..c6231a57f 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -432,6 +432,8 @@ var AuthPrompt = GObject.registerClass({ if (sensitive) this._entry.grab_key_focus(); + else if (this._entry === this._passwordEntry) + this._entry.password_visible = false; } vfunc_hide() {