DO NOT MERGE Remove all password trim() calls
* Initial account setup screen, password entry field * When passing the entered password from incoming->outgoing * When restoring store URI's from HostAuth This will satisfy the users who insist on leading/trailing spaces in their IMAP or EAS password. Not supported by POP3 (no quoting). Bug: 2981433 Change-Id: I16c00bf96382899abb54cb75fcd44cf0f140a660
This commit is contained in:
parent
808d0f38a6
commit
ecffd551cc
@ -350,7 +350,7 @@ public class AccountSetupBasics extends Activity
|
||||
|
||||
private void finishAutoSetup() {
|
||||
String email = mEmailView.getText().toString().trim();
|
||||
String password = mPasswordView.getText().toString().trim();
|
||||
String password = mPasswordView.getText().toString();
|
||||
String[] emailParts = email.split("@");
|
||||
String user = emailParts[0];
|
||||
String domain = emailParts[1];
|
||||
@ -468,7 +468,7 @@ public class AccountSetupBasics extends Activity
|
||||
*/
|
||||
private void onManualSetup(boolean allowAutoDiscover) {
|
||||
String email = mEmailView.getText().toString().trim();
|
||||
String password = mPasswordView.getText().toString().trim();
|
||||
String password = mPasswordView.getText().toString();
|
||||
String[] emailParts = email.split("@");
|
||||
String user = emailParts[0].trim();
|
||||
String domain = emailParts[1].trim();
|
||||
|
@ -348,7 +348,7 @@ public class AccountSetupIncoming extends Activity implements OnClickListener {
|
||||
URI uri = new URI(
|
||||
oldUri.getScheme(),
|
||||
mUsernameView.getText().toString().trim() + ":"
|
||||
+ mPasswordView.getText().toString().trim(),
|
||||
+ mPasswordView.getText().toString(),
|
||||
oldUri.getHost(),
|
||||
oldUri.getPort(),
|
||||
null,
|
||||
|
@ -2266,8 +2266,8 @@ public abstract class EmailContent {
|
||||
String userInfo = null;
|
||||
if ((mFlags & FLAG_AUTHENTICATE) != 0) {
|
||||
String trimUser = (mLogin != null) ? mLogin.trim() : "";
|
||||
String trimPassword = (mPassword != null) ? mPassword.trim() : "";
|
||||
userInfo = trimUser + ":" + trimPassword;
|
||||
String password = (mPassword != null) ? mPassword : "";
|
||||
userInfo = trimUser + ":" + password;
|
||||
}
|
||||
String address = (mAddress != null) ? mAddress.trim() : null;
|
||||
String path = (mDomain != null) ? "/" + mDomain : null;
|
||||
|
Loading…
Reference in New Issue
Block a user