[gnome-shell] authPrompt: Hide password when insensitive



commit 82da51d5a113a039b54e6a061bf2aa72992fdcd9
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 9 21:06:22 2020 +0200

    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 a6ea6c8dd4..c6231a57fd 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() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]