[gnome-shell] authPrompt: Do not allow bypassing disabled Sign In button



commit c65a9c4d2e6e20f548d9f4f38f166b54460472e4
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Thu Jan 7 16:03:41 2016 -0600

    authPrompt: Do not allow bypassing disabled Sign In button
    
    The Next and Sign In buttons are disabled when the username/password
    field is empty. However, the user can still bypass this button by
    pressing the enter key, leading to some odd glitches with the log in
    for 'Not Listed?' users.
    
    This is easy to fix by simply not progressing to the next screen when
    the button is disabled.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746180

 js/gdm/authPrompt.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 88ed2a6..50c66fd 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -189,7 +189,8 @@ const AuthPrompt = new Lang.Class({
                                              this._updateNextButtonSensitivity(this._entry.text.length > 0);
                                          }));
         this._entry.clutter_text.connect('activate', Lang.bind(this, function() {
-            this.emit('next');
+            if (this.nextButton.reactive)
+                this.emit('next');
         }));
     },
 


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