[gnome-shell/gnome-3-18] authPrompt: Do not allow bypassing disabled Sign In button
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-18] authPrompt: Do not allow bypassing disabled Sign In button
- Date: Thu, 7 Jan 2016 23:19:39 +0000 (UTC)
commit f5d9d188a72e91ab40023dbbca6820a52a8262f6
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]