[gnome-shell/gnome-3-6] UnlockDialog: clear the password on failure



commit ec1a13a32507f8ae8b479ff8d65993e91f44a6c8
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Oct 29 17:43:28 2012 +0100

    UnlockDialog: clear the password on failure
    
    It is wrong, and the user can't correct it because it's obfuscated.
    Just let him type it again.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687132

 js/ui/unlockDialog.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 79c8290..52ef50c 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -283,6 +283,7 @@ const UnlockDialog = new Lang.Class({
         this._currentQuery = null;
         this._firstQuestion = true;
 
+        this._promptEntry.text = '';
         this._promptEntry.clutter_text.set_password_char('\u25cf');
         this._promptEntry.menu.isPassword = true;
 



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