fix username probing in autoconfig, r=benb,a=Standard8, bug 745950
authorDavid Bienvenu <bienvenu@nventure.com>
Tue, 17 Apr 2012 13:25:50 -0700
changeset 10736 dafccb53c4925bdea6731c90fd7bbf24da17b0ab
parent 10735 d464d18772e8a5d1995cb05f91d47719994b4d07
child 10737 bb33852f90ed88a8d2f16399dde7bf4b66de4d0f
push idunknown
push userunknown
push dateunknown
reviewersbenb, Standard8, bug
bugs745950
fix username probing in autoconfig, r=benb,a=Standard8, bug 745950
mailnews/base/prefs/content/accountcreation/emailWizard.js
--- a/mailnews/base/prefs/content/accountcreation/emailWizard.js
+++ b/mailnews/base/prefs/content/accountcreation/emailWizard.js
@@ -1573,16 +1573,18 @@ EmailConfigWizard.prototype =
       {
         self.stopSpinner(successfulConfig.incoming.password ?
                          "password_ok" : null);
 
         // the auth might have changed, so we
         // should back-port it to the current config.
         self._currentConfig.incoming.auth = successfulConfig.incoming.auth;
         self._currentConfig.outgoing.auth = successfulConfig.outgoing.auth;
+        self._currentConfig.incoming.username = successfulConfig.incoming.username;
+        self._currentConfig.outgoing.username = successfulConfig.outgoing.username;
         self.finish();
       },
       function(e) // failed
       {
         self.showErrorStatus("config_unverifiable");
         // TODO bug 555448: wrong error msg, there may be a 1000 other
         // reasons why this failed, and this is misleading users.
         self.setError("passworderror", "user_pass_invalid");