From f5d9d188a72e91ab40023dbbca6820a52a8262f6 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 7 Jan 2016 16:03:41 -0600 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 88ed2a689..50c66fd13 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'); })); },