diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index a4d69d949..5c8c175f1 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -193,17 +193,15 @@ const AuthPrompt = new Lang.Class({ }, _onAskQuestion: function(verifier, serviceName, question, passwordChar) { - if (this._preemptiveAnswer) { - if (this._queryingService) - this._userVerifier.answerQuery(this._queryingService, this._preemptiveAnswer); - this._preemptiveAnswer = null; - return; - } - if (this._queryingService) this.clear(); this._queryingService = serviceName; + if (this._preemptiveAnswer) { + this._userVerifier.answerQuery(this._queryingService, this._preemptiveAnswer); + this._preemptiveAnswer = null; + return; + } this.setPasswordChar(passwordChar); this.setQuestion(question);