[gnome-shell/gnome-3-28] authPrompt: Unset preemptiveAnswer on reset

commit bf318df7f31a98bb11424907beb17b195aa4b508
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Mon May 28 23:51:00 2018 +0000

    authPrompt: Unset preemptiveAnswer on reset
    When we get a reset signal the preemptiveAnswer should be also unset or it will
    be used next time the user authPrompt will be activated, even without any further
    user interaction.
    Fixes #311
    (cherry picked from commit d21657fe61f9a41734554811c29c54979ca2dbb9)

 js/gdm/authPrompt.js | 1 +
 1 file changed, 1 insertion(+)
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 481cd3a77..d9ec7eea8 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -439,6 +439,7 @@ var AuthPrompt = new Lang.Class({
         this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
         this.cancelButton.reactive = true;
         this.nextButton.label = _("Next");
+        this._preemptiveAnswer = null;
         if (this._userVerifier)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]