diff options
author | Ray Strode <rstrode@redhat.com> | 2015-07-22 14:52:22 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-07-24 09:44:23 -0400 |
commit | fe7dd1305f10b687f19f6eb6fcb3b47b74e84bd6 (patch) | |
tree | ad2926244b7694476050d4e89bceeb701f1294ed | |
parent | 378a3df5ea97027f100cd36f279c2bd1774e92e0 (diff) |
authPrompt: don't allow next if entry is empty
Normally the user isn't allowed to proceed passed
the username question until they've filled it in.
To ensure this, the authprompt code desensitizes
the next button when the number of characters change to
zero.
Unfortunately it fails to desensitize the next button
up front when the entry starts out empty.
This commit addresses that bug.
https://bugzilla.gnome.org/show_bug.cgi?id=752739
-rw-r--r-- | js/gdm/authPrompt.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a5c6862a..6e5c79f2 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -401,7 +401,7 @@ const AuthPrompt = new Lang.Class({ }, updateSensitivity: function(sensitive) { - this._updateNextButtonSensitivity(sensitive); + this._updateNextButtonSensitivity(sensitive && this._entry.text.length > 0); this._entry.reactive = sensitive; this._entry.clutter_text.editable = sensitive; }, |