Bug 1600954 - [autoconfig] Re-run config after password changed. r+a=jorgk
authorBen Bucksch <ben.bucksch@beonex.com>
Fri, 03 Jan 2020 22:14:37 +1300
changeset 37660 148cc4c05d832e1f3bbd05cc6965a777949c0e2b
parent 37659 3d2a673f9024f7ed91ed398955947b46518d83ca
child 37661 4c0ded168a1f27f2697dab8b1e950c93358ebab3
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
bugs1600954
Bug 1600954 - [autoconfig] Re-run config after password changed. r+a=jorgk
mail/components/accountcreation/content/emailWizard.js
--- a/mail/components/accountcreation/content/emailWizard.js
+++ b/mail/components/accountcreation/content/emailWizard.js
@@ -446,16 +446,17 @@ EmailConfigWizard.prototype = {
    * Start from beginning with possibly new email address.
    */
   onStartOver() {
     this._currentConfig = null;
     if (this._abortable) {
       this.onStop();
     }
     this.switchToMode("start");
+    this.checkStartDone();
   },
 
   getConcreteConfig() {
     var result = this._currentConfig.copy();
     replaceVariables(result, this._realname, this._email, this._password);
     result.rememberPassword =
       e("remember_password").checked && !!this._password;
     if (result.incoming.addonAccountType) {
@@ -493,32 +494,31 @@ EmailConfigWizard.prototype = {
    * e-mail address and non-blank realname to start with.
    *
    * A change to the email address also automatically restarts the
    * whole process.
    */
   onInputEmail() {
     this._email = e("email").value;
     this.onStartOver();
-    this.checkStartDone();
   },
 
   onInputRealname() {
     this._realname = e("realname").value;
     this.checkStartDone();
   },
 
   onInputUsername() {
     this._exchangeUsername = e("usernameEx").value;
-    this.checkStartDone();
+    this.onStartOver();
   },
 
   onInputPassword() {
     this._password = e("password").value;
-    this.checkStartDone();
+    this.onStartOver();
   },
 
   /**
    * This does very little other than to check that a name was entered at all
    * Since this is such an insignificant test we should be using a very light
    * or even jovial warning.
    */
   onBlurRealname() {