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 d21657fe61)
This commit is contained in:
Marco Trevisan (Treviño) 2018-05-28 23:51:00 +00:00 committed by Marco Trevisan
parent 2a2f3c981e
commit bf318df7f3

View File

@ -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)
this._userVerifier.cancel();