mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
authPrompt: allow empty response to PAM messages
Some PAM modules say "Press enter to continue" or whatever. We need to support them. This commit allows empty responses to PAM questions, but still requires a non-empty response for username. https://bugzilla.gnome.org/show_bug.cgi?id=784360
This commit is contained in:
parent
0f8718287a
commit
a782de6e06
1 changed files with 2 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ const AuthPrompt = new Lang.Class({
|
|||
if (!this._userVerifier.hasPendingMessages)
|
||||
this._fadeOutMessage();
|
||||
|
||||
this._updateNextButtonSensitivity(this._entry.text.length > 0);
|
||||
this._updateNextButtonSensitivity(this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING);
|
||||
}));
|
||||
this._entry.clutter_text.connect('activate', Lang.bind(this, function() {
|
||||
if (this.nextButton.reactive)
|
||||
|
|
@ -416,7 +416,7 @@ const AuthPrompt = new Lang.Class({
|
|||
},
|
||||
|
||||
updateSensitivity: function(sensitive) {
|
||||
this._updateNextButtonSensitivity(sensitive && this._entry.text.length > 0);
|
||||
this._updateNextButtonSensitivity(sensitive && (this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING));
|
||||
this._entry.reactive = sensitive;
|
||||
this._entry.clutter_text.editable = sensitive;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue