mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
enable SMTP auth by default: bug 64777 r=racham sr=sspitzer
This commit is contained in:
parent
1f859d742c
commit
6e4be49bc3
@ -53,6 +53,7 @@ function initSmtpSettings(server) {
|
||||
elements = gSmtpTrySSL.getElementsByAttribute("data", "1");
|
||||
gSmtpTrySSL.selectedItem = elements[0];
|
||||
} else {
|
||||
gSmtpAuthMethod.setAttribute("value", "1");
|
||||
gSmtpTrySSL.selectedItem =
|
||||
gSmtpTrySSL.getElementsByAttribute("data", "1")[0];
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!ENTITY alwaysUseUsername.label "Use name and password">
|
||||
<!ENTITY userName.label "User Name:">
|
||||
<!ENTITY savePassword.label "Save my password">
|
||||
<!ENTITY isSecure.label "Use secure connection (SSL)">
|
||||
<!ENTITY isSecure.label "Use secure connection (SSL):">
|
||||
<!ENTITY neverSecure.label "Never">
|
||||
<!ENTITY alwaysSecure.label "Always">
|
||||
<!ENTITY sometimesSecure.label "When available">
|
||||
|
@ -125,10 +125,10 @@ nsSmtpServer::GetAuthMethod(PRInt32 *authMethod)
|
||||
NS_ENSURE_ARG_POINTER(authMethod);
|
||||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
*authMethod = 0;
|
||||
*authMethod = 1;
|
||||
getPrefString("auth_method", pref);
|
||||
rv = prefs->GetIntPref(pref, authMethod);
|
||||
if (NS_FAILED(rv)) *authMethod = 0;
|
||||
if (NS_FAILED(rv)) *authMethod = 1;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user